Home
last modified time | relevance | path

Searched refs:GetNextPrime (Results 1 – 4 of 4) sorted by relevance

/third_party/googletest/googletest/samples/
Dsample6_unittest.cc123 EXPECT_EQ(2, this->table_->GetNextPrime(0)); in TYPED_TEST()
124 EXPECT_EQ(3, this->table_->GetNextPrime(2)); in TYPED_TEST()
125 EXPECT_EQ(5, this->table_->GetNextPrime(3)); in TYPED_TEST()
126 EXPECT_EQ(7, this->table_->GetNextPrime(5)); in TYPED_TEST()
127 EXPECT_EQ(11, this->table_->GetNextPrime(7)); in TYPED_TEST()
128 EXPECT_EQ(131, this->table_->GetNextPrime(128)); in TYPED_TEST()
183 EXPECT_EQ(2, this->table_->GetNextPrime(0)); in TYPED_TEST_P()
184 EXPECT_EQ(3, this->table_->GetNextPrime(2)); in TYPED_TEST_P()
185 EXPECT_EQ(5, this->table_->GetNextPrime(3)); in TYPED_TEST_P()
186 EXPECT_EQ(7, this->table_->GetNextPrime(5)); in TYPED_TEST_P()
[all …]
Dsample8_unittest.cc68 int GetNextPrime(int p) const override { in GetNextPrime() function in __anon93206dcd0111::HybridPrimeTable
71 next_prime = precalc_impl_->GetNextPrime(p); in GetNextPrime()
73 return next_prime != -1 ? next_prime : on_the_fly_impl_->GetNextPrime(p); in GetNextPrime()
132 EXPECT_EQ(2, table_->GetNextPrime(0)); in TEST_P()
133 EXPECT_EQ(3, table_->GetNextPrime(2)); in TEST_P()
134 EXPECT_EQ(5, table_->GetNextPrime(3)); in TEST_P()
135 EXPECT_EQ(7, table_->GetNextPrime(5)); in TEST_P()
136 EXPECT_EQ(11, table_->GetNextPrime(7)); in TEST_P()
137 EXPECT_EQ(131, table_->GetNextPrime(128)); in TEST_P()
Dsample7_unittest.cc98 EXPECT_EQ(2, table_->GetNextPrime(0)); in TEST_P()
99 EXPECT_EQ(3, table_->GetNextPrime(2)); in TEST_P()
100 EXPECT_EQ(5, table_->GetNextPrime(3)); in TEST_P()
101 EXPECT_EQ(7, table_->GetNextPrime(5)); in TEST_P()
102 EXPECT_EQ(11, table_->GetNextPrime(7)); in TEST_P()
103 EXPECT_EQ(131, table_->GetNextPrime(128)); in TEST_P()
Dprime_tables.h51 virtual int GetNextPrime(int p) const = 0;
68 int GetNextPrime(int p) const override { in GetNextPrime() function
92 int GetNextPrime(int p) const override { in GetNextPrime() function