Home
last modified time | relevance | path

Searched refs:Factorial (Results 1 – 6 of 6) sorted by relevance

/freebsd/contrib/googletest/googletest/samples/
H A Dsample1_unittest.cc79 EXPECT_EQ(1, Factorial(-5)); in TEST()
80 EXPECT_EQ(1, Factorial(-1)); in TEST()
81 EXPECT_GT(Factorial(-10), 0); in TEST()
100 TEST(FactorialTest, Zero) { EXPECT_EQ(1, Factorial(0)); } in TEST()
104 EXPECT_EQ(1, Factorial(1)); in TEST()
105 EXPECT_EQ(2, Factorial(2)); in TEST()
106 EXPECT_EQ(6, Factorial(3)); in TEST()
107 EXPECT_EQ(40320, Factorial(8)); in TEST()
H A Dsample5_unittest.cc95 TEST_F(IntegerFunctionTest, Factorial) { in TEST_F() argument
97 EXPECT_EQ(1, Factorial(-5)); in TEST_F()
98 EXPECT_EQ(1, Factorial(-1)); in TEST_F()
99 EXPECT_GT(Factorial(-10), 0); in TEST_F()
102 EXPECT_EQ(1, Factorial(0)); in TEST_F()
105 EXPECT_EQ(1, Factorial(1)); in TEST_F()
106 EXPECT_EQ(2, Factorial(2)); in TEST_F()
107 EXPECT_EQ(6, Factorial(3)); in TEST_F()
108 EXPECT_EQ(40320, Factorial(8)); in TEST_F()
H A Dsample1.h36 int Factorial(int n);
H A Dsample1.cc35 int Factorial(int n) { in Factorial() function
/freebsd/contrib/googletest/docs/
H A Dprimer.md173 int Factorial(int n); // Returns the factorial of n
181 EXPECT_EQ(Factorial(0), 1);
186 EXPECT_EQ(Factorial(1), 1);
187 EXPECT_EQ(Factorial(2), 2);
188 EXPECT_EQ(Factorial(3), 6);
189 EXPECT_EQ(Factorial(8), 40320);
/freebsd/contrib/bc/manuals/
H A Dalgorithms.md281 ### Factorial (`bc` Math Library 2 Only)