Searched refs:Factorial (Results 1 – 6 of 6) sorted by relevance
/freebsd/contrib/googletest/googletest/samples/ |
H A D | sample1_unittest.cc | 79 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 D | sample5_unittest.cc | 95 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 D | sample1.h | 36 int Factorial(int n);
|
H A D | sample1.cc | 35 int Factorial(int n) { in Factorial() function
|
/freebsd/contrib/googletest/docs/ |
H A D | primer.md | 173 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 D | algorithms.md | 281 ### Factorial (`bc` Math Library 2 Only)
|