Lines Matching full:table_
72 virtual ~PrimeTableTest() { delete table_; }
73 virtual void SetUp() { table_ = (*GetParam())(); }
75 delete table_;
76 table_ = NULL;
80 PrimeTable* table_;
84 EXPECT_FALSE(table_->IsPrime(-5));
85 EXPECT_FALSE(table_->IsPrime(0));
86 EXPECT_FALSE(table_->IsPrime(1));
87 EXPECT_FALSE(table_->IsPrime(4));
88 EXPECT_FALSE(table_->IsPrime(6));
89 EXPECT_FALSE(table_->IsPrime(100));
93 EXPECT_TRUE(table_->IsPrime(2));
94 EXPECT_TRUE(table_->IsPrime(3));
95 EXPECT_TRUE(table_->IsPrime(5));
96 EXPECT_TRUE(table_->IsPrime(7));
97 EXPECT_TRUE(table_->IsPrime(11));
98 EXPECT_TRUE(table_->IsPrime(131));
102 EXPECT_EQ(2, table_->GetNextPrime(0));
103 EXPECT_EQ(3, table_->GetNextPrime(2));
104 EXPECT_EQ(5, table_->GetNextPrime(3));
105 EXPECT_EQ(7, table_->GetNextPrime(5));
106 EXPECT_EQ(11, table_->GetNextPrime(7));
107 EXPECT_EQ(131, table_->GetNextPrime(128));