Home | History | Annotate | Download | only in samples

Lines Matching refs:IsPrime

116 // Tests IsPrime()
122 EXPECT_FALSE(IsPrime(-1));
123 EXPECT_FALSE(IsPrime(-2));
124 EXPECT_FALSE(IsPrime(INT_MIN));
129 EXPECT_FALSE(IsPrime(0));
130 EXPECT_FALSE(IsPrime(1));
131 EXPECT_TRUE(IsPrime(2));
132 EXPECT_TRUE(IsPrime(3));
137 EXPECT_FALSE(IsPrime(4));
138 EXPECT_TRUE(IsPrime(5));
139 EXPECT_FALSE(IsPrime(6));
140 EXPECT_TRUE(IsPrime(23));