Searched refs:GetNextPrime (Results 1 - 4 of 4) sorted by relevance
/freebsd-13-stable/contrib/googletest/googletest/samples/ |
H A D | sample8_unittest.cc | 68 virtual int GetNextPrime(int p) const { function in class:__anon819::HybridPrimeTable 71 next_prime = precalc_impl_->GetNextPrime(p); 73 return next_prime != -1 ? next_prime : on_the_fly_impl_->GetNextPrime(p); 139 EXPECT_EQ(2, table_->GetNextPrime(0)); 140 EXPECT_EQ(3, table_->GetNextPrime(2)); 141 EXPECT_EQ(5, table_->GetNextPrime(3)); 142 EXPECT_EQ(7, table_->GetNextPrime(5)); 143 EXPECT_EQ(11, table_->GetNextPrime(7)); 144 EXPECT_EQ(131, table_->GetNextPrime(128));
|
H A D | sample6_unittest.cc | 125 EXPECT_EQ(2, this->table_->GetNextPrime(0)); 126 EXPECT_EQ(3, this->table_->GetNextPrime(2)); 127 EXPECT_EQ(5, this->table_->GetNextPrime(3)); 128 EXPECT_EQ(7, this->table_->GetNextPrime(5)); 129 EXPECT_EQ(11, this->table_->GetNextPrime(7)); 130 EXPECT_EQ(131, this->table_->GetNextPrime(128)); 189 EXPECT_EQ(2, this->table_->GetNextPrime(0)); 190 EXPECT_EQ(3, this->table_->GetNextPrime(2)); 191 EXPECT_EQ(5, this->table_->GetNextPrime(3)); 192 EXPECT_EQ(7, this->table_->GetNextPrime( [all...] |
H A D | sample7_unittest.cc | 98 EXPECT_EQ(2, table_->GetNextPrime(0)); 99 EXPECT_EQ(3, table_->GetNextPrime(2)); 100 EXPECT_EQ(5, table_->GetNextPrime(3)); 101 EXPECT_EQ(7, table_->GetNextPrime(5)); 102 EXPECT_EQ(11, table_->GetNextPrime(7)); 103 EXPECT_EQ(131, table_->GetNextPrime(128));
|
H A D | prime_tables.h | 51 virtual int GetNextPrime(int p) const = 0; 68 virtual int GetNextPrime(int p) const { function in class:OnTheFlyPrimeTable 92 virtual int GetNextPrime(int p) const { function in class:PreCalculatedPrimeTable
|
Completed in 51 milliseconds