Searched refs:GetNextPrime (Results 1 – 4 of 4) sorted by relevance
| /freebsd-12.1/contrib/googletest/googletest/samples/ |
| H A D | sample6_unittest.cc | 125 EXPECT_EQ(2, this->table_->GetNextPrime(0)); in TYPED_TEST() 126 EXPECT_EQ(3, this->table_->GetNextPrime(2)); in TYPED_TEST() 127 EXPECT_EQ(5, this->table_->GetNextPrime(3)); in TYPED_TEST() 128 EXPECT_EQ(7, this->table_->GetNextPrime(5)); in TYPED_TEST() 129 EXPECT_EQ(11, this->table_->GetNextPrime(7)); in TYPED_TEST() 130 EXPECT_EQ(131, this->table_->GetNextPrime(128)); in TYPED_TEST() 189 EXPECT_EQ(2, this->table_->GetNextPrime(0)); in TYPED_TEST_P() 190 EXPECT_EQ(3, this->table_->GetNextPrime(2)); in TYPED_TEST_P() 191 EXPECT_EQ(5, this->table_->GetNextPrime(3)); in TYPED_TEST_P() 192 EXPECT_EQ(7, this->table_->GetNextPrime(5)); in TYPED_TEST_P() [all …]
|
| H A D | sample8_unittest.cc | 68 virtual int GetNextPrime(int p) const { in GetNextPrime() function in __anonf9280ffd0111::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() 139 EXPECT_EQ(2, table_->GetNextPrime(0)); in TEST_P() 140 EXPECT_EQ(3, table_->GetNextPrime(2)); in TEST_P() 141 EXPECT_EQ(5, table_->GetNextPrime(3)); in TEST_P() 142 EXPECT_EQ(7, table_->GetNextPrime(5)); in TEST_P() 143 EXPECT_EQ(11, table_->GetNextPrime(7)); in TEST_P() 144 EXPECT_EQ(131, table_->GetNextPrime(128)); in TEST_P()
|
| H A D | sample7_unittest.cc | 98 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()
|
| H A D | prime_tables.h | 51 virtual int GetNextPrime(int p) const = 0; 68 virtual int GetNextPrime(int p) const { in GetNextPrime() function 92 virtual int GetNextPrime(int p) const { in GetNextPrime() function
|