1
0
mirror of https://github.com/meekrosoft/fff synced 2026-01-30 11:44:28 +01:00

Moved global variables into struct so they don't pollute the global namespace

This commit is contained in:
Mike Long
2012-05-29 07:46:21 +08:00
parent fef801e995
commit 3d6cfd218b
12 changed files with 68 additions and 66 deletions

View File

@@ -1,10 +1,4 @@
#include <assert.h>
#include <stdio.h>
void setup();
#define TEST_F(SUITE, NAME) void NAME()
#define RUN_TEST(TESTNAME) printf(" Running %s: ", #TESTNAME); fflush(0); setup(); TESTNAME(); printf(" SUCCESS\n");
#include "../test/c_test_framework.h"
/* Initialializers called for every test */
void setup()
@@ -29,7 +23,7 @@ int main()
fflush(0);
/* Run tests */
RUN_TEST(hello_world);
RUN_TEST(GreeterTests, hello_world);
printf("\n-------------\n");