77 #if GTEST_HAS_TYPED_TEST
94 typedef Types<OnTheFlyPrimeTable, PreCalculatedPrimeTable> Implementations;
126 EXPECT_EQ(2, this->table_->GetNextPrime(0));
127 EXPECT_EQ(3, this->table_->GetNextPrime(2));
128 EXPECT_EQ(5, this->table_->GetNextPrime(3));
129 EXPECT_EQ(7, this->table_->GetNextPrime(5));
130 EXPECT_EQ(11, this->table_->GetNextPrime(7));
131 EXPECT_EQ(131, this->table_->GetNextPrime(128));
138 #endif // GTEST_HAS_TYPED_TEST
140 #if GTEST_HAS_TYPED_TEST_P
142 using testing::Types;
171 TYPED_TEST_P(PrimeTableTest2, ReturnsFalseForNonPrimes) {
190 EXPECT_EQ(2, this->table_->GetNextPrime(0));
191 EXPECT_EQ(3, this->table_->GetNextPrime(2));
192 EXPECT_EQ(5, this->table_->GetNextPrime(3));
193 EXPECT_EQ(7, this->table_->GetNextPrime(5));
194 EXPECT_EQ(11, this->table_->GetNextPrime(7));
195 EXPECT_EQ(131, this->table_->GetNextPrime(128));
203 ReturnsFalseForNonPrimes, ReturnsTrueForPrimes, CanGetNextPrime);
218 typedef Types<OnTheFlyPrimeTable, PreCalculatedPrimeTable>
219 PrimeTableImplementations;
222 PrimeTableImplementations);
224 #endif // GTEST_HAS_TYPED_TEST_P