Lines Matching refs:IsPrime
118 TEST_F(IntegerFunctionTest, IsPrime) { in TEST_F() argument
120 EXPECT_FALSE(IsPrime(-1)); in TEST_F()
121 EXPECT_FALSE(IsPrime(-2)); in TEST_F()
122 EXPECT_FALSE(IsPrime(INT_MIN)); in TEST_F()
125 EXPECT_FALSE(IsPrime(0)); in TEST_F()
126 EXPECT_FALSE(IsPrime(1)); in TEST_F()
127 EXPECT_TRUE(IsPrime(2)); in TEST_F()
128 EXPECT_TRUE(IsPrime(3)); in TEST_F()
131 EXPECT_FALSE(IsPrime(4)); in TEST_F()
132 EXPECT_TRUE(IsPrime(5)); in TEST_F()
133 EXPECT_FALSE(IsPrime(6)); in TEST_F()
134 EXPECT_TRUE(IsPrime(23)); in TEST_F()