diff --git a/set.h b/set.h index 3e45588..003011d 100644 --- a/set.h +++ b/set.h @@ -1,3 +1,6 @@ + +#define _GNU_SOURCE + #include #include #include diff --git a/testtest.c b/testtest.c index a4042af..18e50ba 100644 --- a/testtest.c +++ b/testtest.c @@ -6,7 +6,7 @@ int fac(int n) { - if (n == 1) + if (n <= 1) return 1; return n * fac(n - 1); } @@ -21,8 +21,8 @@ SETUP() TEAR_DOWN() { - printf("Ending execution.!"); - return false; + printf("Ending execution."); + return true; } TEST(Faculty_Basic)