/external/catch2/.conan/test_package/ |
D | test_package.cpp | 5 int Factorial( int number ) { in Factorial() function 6 return number <= 1 ? 1 : Factorial( number - 1 ) * number; in Factorial() 10 REQUIRE( Factorial(0) == 1 ); 11 REQUIRE( Factorial(1) == 1 ); 12 REQUIRE( Factorial(2) == 2 ); 13 REQUIRE( Factorial(3) == 6 ); 14 REQUIRE( Factorial(10) == 3628800 );
|
/external/catch2/examples/ |
D | 020-TestCase-2.cpp | 7 int Factorial( int number ) { in Factorial() function 8 return number <= 1 ? number : Factorial( number - 1 ) * number; // fail in Factorial() 13 REQUIRE( Factorial(0) == 1 ); 17 REQUIRE( Factorial(1) == 1 ); 18 REQUIRE( Factorial(2) == 2 ); 19 REQUIRE( Factorial(3) == 6 ); 20 REQUIRE( Factorial(10) == 3628800 );
|
D | 010-TestCase.cpp | 8 int Factorial( int number ) { in Factorial() function 9 return number <= 1 ? number : Factorial( number - 1 ) * number; // fail in Factorial() 14 REQUIRE( Factorial(0) == 1 ); 18 REQUIRE( Factorial(1) == 1 ); 19 REQUIRE( Factorial(2) == 2 ); 20 REQUIRE( Factorial(3) == 6 ); 21 REQUIRE( Factorial(10) == 3628800 );
|
/external/googletest/googletest/samples/ |
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() 101 EXPECT_EQ(1, Factorial(0)); in TEST() 106 EXPECT_EQ(1, Factorial(1)); in TEST() 107 EXPECT_EQ(2, Factorial(2)); in TEST() 108 EXPECT_EQ(6, Factorial(3)); in TEST() 109 EXPECT_EQ(40320, Factorial(8)); in TEST()
|
D | sample5_unittest.cc | 97 TEST_F(IntegerFunctionTest, Factorial) { in TEST_F() argument 99 EXPECT_EQ(1, Factorial(-5)); in TEST_F() 100 EXPECT_EQ(1, Factorial(-1)); in TEST_F() 101 EXPECT_GT(Factorial(-10), 0); in TEST_F() 104 EXPECT_EQ(1, Factorial(0)); in TEST_F() 107 EXPECT_EQ(1, Factorial(1)); in TEST_F() 108 EXPECT_EQ(2, Factorial(2)); in TEST_F() 109 EXPECT_EQ(6, Factorial(3)); in TEST_F() 110 EXPECT_EQ(40320, Factorial(8)); in TEST_F()
|
D | sample1.h | 36 int Factorial(int n);
|
D | sample1.cc | 35 int Factorial(int n) { in Factorial() function
|
/external/rust/crates/quiche/deps/boringssl/src/third_party/googletest/samples/ |
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() 101 EXPECT_EQ(1, Factorial(0)); in TEST() 106 EXPECT_EQ(1, Factorial(1)); in TEST() 107 EXPECT_EQ(2, Factorial(2)); in TEST() 108 EXPECT_EQ(6, Factorial(3)); in TEST() 109 EXPECT_EQ(40320, Factorial(8)); in TEST()
|
D | sample5_unittest.cc | 97 TEST_F(IntegerFunctionTest, Factorial) { in TEST_F() argument 99 EXPECT_EQ(1, Factorial(-5)); in TEST_F() 100 EXPECT_EQ(1, Factorial(-1)); in TEST_F() 101 EXPECT_GT(Factorial(-10), 0); in TEST_F() 104 EXPECT_EQ(1, Factorial(0)); in TEST_F() 107 EXPECT_EQ(1, Factorial(1)); in TEST_F() 108 EXPECT_EQ(2, Factorial(2)); in TEST_F() 109 EXPECT_EQ(6, Factorial(3)); in TEST_F() 110 EXPECT_EQ(40320, Factorial(8)); in TEST_F()
|
D | sample1.h | 36 int Factorial(int n);
|
D | sample1.cc | 35 int Factorial(int n) { in Factorial() function
|
/external/catch2/projects/SelfTest/UsageTests/ |
D | Misc.tests.cpp | 44 inline unsigned int Factorial( unsigned int number ) { in Factorial() function 45 return number > 1 ? Factorial(number-1)*number : 1; in Factorial() 211 REQUIRE( Factorial(0) == 1 ); 212 REQUIRE( Factorial(1) == 1 ); 213 REQUIRE( Factorial(2) == 2 ); 214 REQUIRE( Factorial(3) == 6 ); 215 REQUIRE( Factorial(10) == 3628800 );
|
/external/catch2/docs/ |
D | slow-compiles.md | 28 Assume you have the `Factorial` function from the [tutorial](tutorial.md#top) in `factorial.cpp` (w… 43 REQUIRE( Factorial(1) == 1 ); 44 REQUIRE( Factorial(2) == 2 ); 45 REQUIRE( Factorial(3) == 6 ); 46 REQUIRE( Factorial(10) == 3628800 ); 59 Now, the next time we change the file `tests-factorial.cpp` (say we add `REQUIRE( Factorial(0) == 1… 63 tests-factorial.cpp:11: failed: Factorial(0) == 1 for: 0 == 1
|
D | tutorial.md | 38 unsigned int Factorial( unsigned int number ) { 39 return number <= 1 ? number : Factorial(number-1)*number; 49 unsigned int Factorial( unsigned int number ) { 50 return number <= 1 ? number : Factorial(number-1)*number; 54 REQUIRE( Factorial(1) == 1 ); 55 REQUIRE( Factorial(2) == 2 ); 56 REQUIRE( Factorial(3) == 6 ); 57 REQUIRE( Factorial(10) == 3628800 ); 73 REQUIRE( Factorial(0) == 1 ); 74 REQUIRE( Factorial(1) == 1 ); [all …]
|
/external/llvm-project/debuginfo-tests/dexter/feature_tests/commands/perfect/ |
D | expect_watch_value.cpp | 10 unsigned long Factorial(int n) { in Factorial() function 21 return Factorial(8); in main()
|
/external/llvm-project/llvm/utils/benchmark/test/ |
D | benchmark_test.cc | 29 int BENCHMARK_NOINLINE Factorial(uint32_t n) { in Factorial() function 30 return (n == 1) ? 1 : n * Factorial(n - 1); in Factorial() 56 for (auto _ : state) fac_42 = Factorial(8); in BM_Factorial()
|
/external/google-benchmark/test/ |
D | benchmark_test.cc | 29 int BENCHMARK_NOINLINE Factorial(uint32_t n) { in Factorial() function 30 return (n == 1) ? 1 : n * Factorial(n - 1); in Factorial() 56 for (auto _ : state) fac_42 = Factorial(8); in BM_Factorial()
|
/external/libcxx/utils/google-benchmark/test/ |
D | benchmark_test.cc | 29 int BENCHMARK_NOINLINE Factorial(uint32_t n) { in Factorial() function 30 return (n == 1) ? 1 : n * Factorial(n - 1); in Factorial() 56 for (auto _ : state) fac_42 = Factorial(8); in BM_Factorial()
|
/external/llvm-project/libcxx/utils/google-benchmark/test/ |
D | benchmark_test.cc | 29 int BENCHMARK_NOINLINE Factorial(uint32_t n) { in Factorial() function 30 return (n == 1) ? 1 : n * Factorial(n - 1); in Factorial() 56 for (auto _ : state) fac_42 = Factorial(8); in BM_Factorial()
|
/external/markdown/tests/misc/ |
D | arabic.txt | 17 مثال لاستخراج المضروب Factorial :
|
D | bidi.txt | 41 مثال لاستخراج المضروب Factorial :
|
/external/boringssl/src/third_party/wycheproof_testvectors/ |
D | primality_test.txt | 1278 # Factorial prime 1283 # Factorial prime 1288 # Factorial prime 1293 # Factorial prime 1298 # Factorial prime 1303 # Factorial prime 1308 # Factorial prime 1313 # Factorial prime 1318 # Factorial prime 1323 # Factorial prime
|
/external/python/cpython2/Demo/comparisons/ |
D | README | 14 0) Factorial Test (numerics and function calls)
|
/external/googletest/docs/ |
D | primer.md | 269 int Factorial(int n); // Returns the factorial of n 277 EXPECT_EQ(Factorial(0), 1); 282 EXPECT_EQ(Factorial(1), 1); 283 EXPECT_EQ(Factorial(2), 2); 284 EXPECT_EQ(Factorial(3), 6); 285 EXPECT_EQ(Factorial(8), 40320);
|
/external/catch2/projects/SelfTest/Baselines/ |
D | compact.sw.approved.txt | 411 Misc.tests.cpp:<line number>: passed: Factorial(0) == 1 for: 1 == 1 412 Misc.tests.cpp:<line number>: passed: Factorial(1) == 1 for: 1 == 1 413 Misc.tests.cpp:<line number>: passed: Factorial(2) == 2 for: 2 == 2 414 Misc.tests.cpp:<line number>: passed: Factorial(3) == 6 for: 6 == 6 415 Misc.tests.cpp:<line number>: passed: Factorial(10) == 3628800 for: 3628800 (0x<hex digits>) == 362…
|