Home | History | Annotate | Download | only in samples

Lines Matching refs:IsPrime

117 // Tests IsPrime()
118 TEST_F(IntegerFunctionTest, IsPrime) {
120 EXPECT_TRUE(!IsPrime(-1));
121 EXPECT_TRUE(!IsPrime(-2));
122 EXPECT_TRUE(!IsPrime(INT_MIN));
125 EXPECT_TRUE(!IsPrime(0));
126 EXPECT_TRUE(!IsPrime(1));
127 EXPECT_TRUE(IsPrime(2));
128 EXPECT_TRUE(IsPrime(3));
131 EXPECT_TRUE(!IsPrime(4));
132 EXPECT_TRUE(IsPrime(5));
133 EXPECT_TRUE(!IsPrime(6));
134 EXPECT_TRUE(IsPrime(23));