diff --git a/set.h b/set.h index 917c47a..3e45588 100644 --- a/set.h +++ b/set.h @@ -38,7 +38,7 @@ bool set_up(); bool tear_down(); -#define SETUP() void set_up() +#define SETUP() bool set_up() #define TEAR_DOWN() bool tear_down() #define BUNDLE() \ diff --git a/testtest.c b/testtest.c index 876b394..a4042af 100644 --- a/testtest.c +++ b/testtest.c @@ -1,4 +1,5 @@ #include "set.h" +#include #include #include "set_asserts.h" @@ -12,6 +13,18 @@ int fac(int n) void heavy_load() { sleep(5); } +SETUP() +{ + printf("Setting up.\n"); + return true; +} + +TEAR_DOWN() +{ + printf("Ending execution.!"); + return false; +} + TEST(Faculty_Basic) { ASSERT_EQ(fac(5), 120);