diff options
Diffstat (limited to 'tests/metatest.c')
-rw-r--r-- | tests/metatest.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/metatest.c b/tests/metatest.c new file mode 100644 index 0000000..1024156 --- /dev/null +++ b/tests/metatest.c @@ -0,0 +1,22 @@ +#include "test_harness.h" + +/* Tests the test harness itself. */ + +static int my_variable; +static int my_initialized_variable = 5; + +TEST(meta, clobbers_variables) +{ + my_variable = 6; + my_initialized_variable = 5; + + return 0; +} + +TEST(meta, variables_reset) +{ + ASSERT_EQ(my_variable, 0); + ASSERT_EQ(my_initialized_variable, 5); + + return 0; +} |