HomeSort by relevance Sort by last modified time
    Searched refs:Factorial (Results 1 - 13 of 13) sorted by null

  /external/chromium/testing/gtest/samples/
sample1.h 37 // Returns n! (the factorial of n). For negative n, n! is defined to be 1.
38 int Factorial(int n);
sample1_unittest.cc 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))
    [all...]
sample5_unittest.cc 99 // Tests Factorial()
100 TEST_F(IntegerFunctionTest, Factorial) {
101 // Tests factorial of negative numbers.
102 EXPECT_EQ(1, Factorial(-5));
103 EXPECT_EQ(1, Factorial(-1));
104 EXPECT_TRUE(Factorial(-10) > 0);
106 // Tests factorial of 0.
107 EXPECT_EQ(1, Factorial(0));
109 // Tests factorial of positive numbers.
110 EXPECT_EQ(1, Factorial(1))
    [all...]
sample1.cc 36 // Returns n! (the factorial of n). For negative n, n! is defined to be 1.
37 int Factorial(int n) {
  /external/gtest/samples/
sample1.h 37 // Returns n! (the factorial of n). For negative n, n! is defined to be 1.
38 int Factorial(int n);
sample1_unittest.cc 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))
    [all...]
sample5_unittest.cc 99 // Tests Factorial()
100 TEST_F(IntegerFunctionTest, Factorial) {
101 // Tests factorial of negative numbers.
102 EXPECT_EQ(1, Factorial(-5));
103 EXPECT_EQ(1, Factorial(-1));
104 EXPECT_TRUE(Factorial(-10) > 0);
106 // Tests factorial of 0.
107 EXPECT_EQ(1, Factorial(0));
109 // Tests factorial of positive numbers.
110 EXPECT_EQ(1, Factorial(1))
    [all...]
sample1.cc 36 // Returns n! (the factorial of n). For negative n, n! is defined to be 1.
37 int Factorial(int n) {
  /external/protobuf/gtest/samples/
sample1.h 37 // Returns n! (the factorial of n). For negative n, n! is defined to be 1.
38 int Factorial(int n);
sample1_unittest.cc 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))
    [all...]
sample5_unittest.cc 99 // Tests Factorial()
100 TEST_F(IntegerFunctionTest, Factorial) {
101 // Tests factorial of negative numbers.
102 EXPECT_EQ(1, Factorial(-5));
103 EXPECT_EQ(1, Factorial(-1));
104 EXPECT_TRUE(Factorial(-10) > 0);
106 // Tests factorial of 0.
107 EXPECT_EQ(1, Factorial(0));
109 // Tests factorial of positive numbers.
110 EXPECT_EQ(1, Factorial(1))
    [all...]
sample1.cc 36 // Returns n! (the factorial of n). For negative n, n! is defined to be 1.
37 int Factorial(int n) {
  /external/v8/test/mjsunit/compiler/
loops.js 32 // Factorial!

Completed in 586 milliseconds