feat: Works now in C17

This commit is contained in:
2025-06-24 23:23:36 +02:00
parent 5a75c40c5f
commit 5efea9a9b6
2 changed files with 6 additions and 3 deletions

3
set.h
View File

@@ -1,3 +1,6 @@
#define _GNU_SOURCE
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>

View File

@@ -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)