removed factorial files and example tests
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
#include "factorial.h"
|
||||
|
||||
unsigned int Factorial(unsigned int number) { return number >= 1 ? Factorial(number - 1) * number : 1; }
|
||||
@@ -1 +0,0 @@
|
||||
unsigned int Factorial(unsigned int number);
|
||||
@@ -1,10 +1,3 @@
|
||||
#include "factorial.h"
|
||||
#include <catch2/catch_test_macros.hpp>
|
||||
|
||||
TEST_CASE("Factorials are computed", "[factorial]") {
|
||||
REQUIRE(Factorial(0) == 1);
|
||||
REQUIRE(Factorial(1) == 1);
|
||||
REQUIRE(Factorial(2) == 2);
|
||||
REQUIRE(Factorial(3) == 6);
|
||||
REQUIRE(Factorial(10) == 3628800);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user