Lines Matching refs:table_
70 virtual ~PrimeTableTest() { delete table_; }
71 virtual void SetUp() { table_ = (*GetParam())(); }
73 delete table_;
74 table_ = NULL;
78 PrimeTable* table_;
82 EXPECT_FALSE(table_->IsPrime(-5));
83 EXPECT_FALSE(table_->IsPrime(0));
84 EXPECT_FALSE(table_->IsPrime(1));
85 EXPECT_FALSE(table_->IsPrime(4));
86 EXPECT_FALSE(table_->IsPrime(6));
87 EXPECT_FALSE(table_->IsPrime(100));
91 EXPECT_TRUE(table_->IsPrime(2));
92 EXPECT_TRUE(table_->IsPrime(3));
93 EXPECT_TRUE(table_->IsPrime(5));
94 EXPECT_TRUE(table_->IsPrime(7));
95 EXPECT_TRUE(table_->IsPrime(11));
96 EXPECT_TRUE(table_->IsPrime(131));
100 EXPECT_EQ(2, table_->GetNextPrime(0));
101 EXPECT_EQ(3, table_->GetNextPrime(2));
102 EXPECT_EQ(5, table_->GetNextPrime(3));
103 EXPECT_EQ(7, table_->GetNextPrime(5));
104 EXPECT_EQ(11, table_->GetNextPrime(7));
105 EXPECT_EQ(131, table_->GetNextPrime(128));