Home | History | Annotate | Download | only in samples

Lines Matching refs:Factorial

76 // Tests Factorial().
78 // Tests factorial of negative numbers.
82 EXPECT_EQ(1, Factorial(-5));
83 EXPECT_EQ(1, Factorial(-1));
84 EXPECT_TRUE(Factorial(-10) > 0);
102 // Tests factorial of 0.
104 EXPECT_EQ(1, Factorial(0));
107 // Tests factorial of positive numbers.
109 EXPECT_EQ(1, Factorial(1));
110 EXPECT_EQ(2, Factorial(2));
111 EXPECT_EQ(6, Factorial(3));
112 EXPECT_EQ(40320, Factorial(8));