From 5efea9a9b6a1ac210ade34e3ab78782b19e3010f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorben=20H=C3=B6hne?= Date: Tue, 24 Jun 2025 23:23:36 +0200 Subject: [PATCH] feat: Works now in C17 --- set.h | 3 +++ testtest.c | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) 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)