Commit 5d4715ae by Tom Hughes Committed by Copybara-Service

Fix typos

PiperOrigin-RevId: 488799458
Change-Id: I1aaaa60c5be3260055a6f5773f78cb4043a60ac8
parent 7c022b94
...@@ -136,7 +136,7 @@ TYPED_TEST(UniformIntDistributionTest, TestMoments) { ...@@ -136,7 +136,7 @@ TYPED_TEST(UniformIntDistributionTest, TestMoments) {
typename absl::uniform_int_distribution<TypeParam>::param_type; typename absl::uniform_int_distribution<TypeParam>::param_type;
// We use a fixed bit generator for distribution accuracy tests. This allows // We use a fixed bit generator for distribution accuracy tests. This allows
// these tests to be deterministic, while still testing the qualify of the // these tests to be deterministic, while still testing the quality of the
// implementation. // implementation.
absl::random_internal::pcg64_2018_engine rng{0x2B7E151628AED2A6}; absl::random_internal::pcg64_2018_engine rng{0x2B7E151628AED2A6};
...@@ -172,7 +172,7 @@ TYPED_TEST(UniformIntDistributionTest, ChiSquaredTest50) { ...@@ -172,7 +172,7 @@ TYPED_TEST(UniformIntDistributionTest, ChiSquaredTest50) {
using absl::random_internal::kChiSquared; using absl::random_internal::kChiSquared;
constexpr size_t kTrials = 1000; constexpr size_t kTrials = 1000;
constexpr int kBuckets = 50; // inclusive, so actally +1 constexpr int kBuckets = 50; // inclusive, so actually +1
constexpr double kExpected = constexpr double kExpected =
static_cast<double>(kTrials) / static_cast<double>(kBuckets); static_cast<double>(kTrials) / static_cast<double>(kBuckets);
...@@ -184,7 +184,7 @@ TYPED_TEST(UniformIntDistributionTest, ChiSquaredTest50) { ...@@ -184,7 +184,7 @@ TYPED_TEST(UniformIntDistributionTest, ChiSquaredTest50) {
const TypeParam max = min + kBuckets; const TypeParam max = min + kBuckets;
// We use a fixed bit generator for distribution accuracy tests. This allows // We use a fixed bit generator for distribution accuracy tests. This allows
// these tests to be deterministic, while still testing the qualify of the // these tests to be deterministic, while still testing the quality of the
// implementation. // implementation.
absl::random_internal::pcg64_2018_engine rng{0x2B7E151628AED2A6}; absl::random_internal::pcg64_2018_engine rng{0x2B7E151628AED2A6};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment