tiny docs changes
diff --git a/scripts/hello_world.cpp b/scripts/hello_world.cpp
index 496e709..ff49edd 100644
--- a/scripts/hello_world.cpp
+++ b/scripts/hello_world.cpp
@@ -1,12 +1,14 @@
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
-#include "doctest.h"
+#include <doctest.h>
-static int factorial(int number) { return number <= 1 ? number : factorial(number - 1) * number; }
+int fact(int n) {
+ return n <= 1 ? n : fact(n - 1) * n;
+}
TEST_CASE("testing the factorial function") {
- CHECK(factorial(0) == 1);
- CHECK(factorial(1) == 1);
- CHECK(factorial(2) == 2);
- CHECK(factorial(3) == 6);
- CHECK(factorial(10) == 3628800);
+ CHECK(fact(0) == 1); // should fail
+ CHECK(fact(1) == 1);
+ CHECK(fact(2) == 2);
+ CHECK(fact(3) == 6);
+ CHECK(fact(10) == 3628800);
}