/third_party/abseil-cpp/absl/random/internal/ |
D | uniform_helper_test.cc | 39 constexpr IntervalOpenOpenTag IntervalOpenOpen; in TEST_F() local 45 EXPECT_EQ(uniform_lower_bound(IntervalOpenOpen, 0, 100), 1); in TEST_F() 47 EXPECT_GT(uniform_lower_bound<float>(IntervalOpenOpen, 0, 1.0), 0); in TEST_F() 49 EXPECT_GT(uniform_lower_bound<double>(IntervalOpenOpen, 0, 1.0), 0); in TEST_F() 58 EXPECT_EQ(uniform_upper_bound(IntervalOpenOpen, 0, 100), 99); in TEST_F() 60 EXPECT_EQ(uniform_upper_bound<float>(IntervalOpenOpen, 0, 1.0), 1.0); in TEST_F() 62 EXPECT_EQ(uniform_upper_bound<double>(IntervalOpenOpen, 0, 1.0), 1.0); in TEST_F() 74 EXPECT_EQ(uniform_lower_bound(IntervalOpenOpen, -100, -1), -99); in TEST_F() 76 EXPECT_GT(uniform_lower_bound<float>(IntervalOpenOpen, -2.0, -1.0), -2.0); in TEST_F() 78 EXPECT_GT(uniform_lower_bound<double>(IntervalOpenOpen, -2.0, -1.0), -2.0); in TEST_F() [all …]
|
/third_party/skia/third_party/externals/abseil-cpp/absl/random/internal/ |
D | uniform_helper_test.cc | 39 constexpr IntervalOpenOpenTag IntervalOpenOpen; in TEST_F() local 45 EXPECT_EQ(uniform_lower_bound(IntervalOpenOpen, 0, 100), 1); in TEST_F() 47 EXPECT_GT(uniform_lower_bound<float>(IntervalOpenOpen, 0, 1.0), 0); in TEST_F() 49 EXPECT_GT(uniform_lower_bound<double>(IntervalOpenOpen, 0, 1.0), 0); in TEST_F() 58 EXPECT_EQ(uniform_upper_bound(IntervalOpenOpen, 0, 100), 99); in TEST_F() 60 EXPECT_EQ(uniform_upper_bound<float>(IntervalOpenOpen, 0, 1.0), 1.0); in TEST_F() 62 EXPECT_EQ(uniform_upper_bound<double>(IntervalOpenOpen, 0, 1.0), 1.0); in TEST_F() 74 EXPECT_EQ(uniform_lower_bound(IntervalOpenOpen, -100, -1), -99); in TEST_F() 76 EXPECT_GT(uniform_lower_bound<float>(IntervalOpenOpen, -2.0, -1.0), -2.0); in TEST_F() 78 EXPECT_GT(uniform_lower_bound<double>(IntervalOpenOpen, -2.0, -1.0), -2.0); in TEST_F() [all …]
|
/third_party/abseil-cpp/absl/random/ |
D | distributions_test.cc | 206 EXPECT_NE(1, absl::Uniform(absl::IntervalOpenOpen, gen, in TEST_F() 208 EXPECT_NE(1, absl::Uniform(absl::IntervalOpenOpen, gen, 0, 1.0)); in TEST_F() 209 EXPECT_NE(1, absl::Uniform(absl::IntervalOpenOpen, gen, -1, 1.0)); in TEST_F() 210 EXPECT_NE(1, absl::Uniform<double>(absl::IntervalOpenOpen, gen, -1, 1)); in TEST_F() 211 EXPECT_NE(1, absl::Uniform<float>(absl::IntervalOpenOpen, gen, 0, 1)); in TEST_F() 232 EXPECT_EQ(0, absl::Uniform<uint64_t>(absl::IntervalOpenOpen, gen, 0, 0)); in TEST_F() 233 EXPECT_EQ(1, absl::Uniform<uint64_t>(absl::IntervalOpenOpen, gen, 1, 0)); in TEST_F() 240 EXPECT_EQ(m, absl::Uniform(absl::IntervalOpenOpen, gen, m, m)); in TEST_F() 241 EXPECT_EQ(m, absl::Uniform(absl::IntervalOpenOpen, gen, m, m - 1)); in TEST_F() 242 EXPECT_EQ(m - 1, absl::Uniform(absl::IntervalOpenOpen, gen, m - 1, m)); in TEST_F() [all …]
|
D | generators_test.cc | 39 absl::Uniform(absl::IntervalOpenOpen, *gen, 0.0, 1.0); in TestUniform() 47 absl::Uniform(absl::IntervalOpenOpen, *gen, -1.0, 1.0); in TestUniform() 50 absl::Uniform(absl::IntervalOpenOpen, *gen, 0, 1.0); // Promoted to double in TestUniform() 73 absl::Uniform<double>(absl::IntervalOpenOpen, *gen, 0, 1); in TestUniform() 76 absl::Uniform<double>(absl::IntervalOpenOpen, *gen, 0, 1); in TestUniform() 80 absl::Uniform<int>(absl::IntervalOpenOpen, *gen, 0, 100); in TestUniform() 83 absl::Uniform<int>(absl::IntervalOpenOpen, *gen, 0, 100); in TestUniform()
|
D | distributions.h | 75 ABSL_INTERNAL_INLINE_CONSTEXPR(IntervalOpenOpenTag, IntervalOpenOpen, {});
|
/third_party/skia/third_party/externals/abseil-cpp/absl/random/ |
D | distributions_test.cc | 207 EXPECT_NE(1, absl::Uniform(absl::IntervalOpenOpen, gen, in TEST_F() 209 EXPECT_NE(1, absl::Uniform(absl::IntervalOpenOpen, gen, 0, 1.0)); in TEST_F() 210 EXPECT_NE(1, absl::Uniform(absl::IntervalOpenOpen, gen, -1, 1.0)); in TEST_F() 211 EXPECT_NE(1, absl::Uniform<double>(absl::IntervalOpenOpen, gen, -1, 1)); in TEST_F() 212 EXPECT_NE(1, absl::Uniform<float>(absl::IntervalOpenOpen, gen, 0, 1)); in TEST_F() 242 EXPECT_EQ(0, absl::Uniform<uint64_t>(absl::IntervalOpenOpen, gen, 0, 0)); in TEST_F() 243 EXPECT_EQ(1, absl::Uniform<uint64_t>(absl::IntervalOpenOpen, gen, 1, 0)); in TEST_F() 250 EXPECT_EQ(m, absl::Uniform(absl::IntervalOpenOpen, gen, m, m)); in TEST_F() 251 EXPECT_EQ(m, absl::Uniform(absl::IntervalOpenOpen, gen, m, m - 1)); in TEST_F() 252 EXPECT_EQ(m - 1, absl::Uniform(absl::IntervalOpenOpen, gen, m - 1, m)); in TEST_F() [all …]
|
D | generators_test.cc | 39 absl::Uniform(absl::IntervalOpenOpen, *gen, 0.0, 1.0); in TestUniform() 47 absl::Uniform(absl::IntervalOpenOpen, *gen, -1.0, 1.0); in TestUniform() 50 absl::Uniform(absl::IntervalOpenOpen, *gen, 0, 1.0); // Promoted to double in TestUniform() 73 absl::Uniform<double>(absl::IntervalOpenOpen, *gen, 0, 1); in TestUniform() 76 absl::Uniform<double>(absl::IntervalOpenOpen, *gen, 0, 1); in TestUniform() 80 absl::Uniform<int>(absl::IntervalOpenOpen, *gen, 0, 100); in TestUniform() 83 absl::Uniform<int>(absl::IntervalOpenOpen, *gen, 0, 100); in TestUniform()
|
D | distributions.h | 75 ABSL_INTERNAL_INLINE_CONSTEXPR(IntervalOpenOpenTag, IntervalOpenOpen, {});
|