diff --git a/build/test/cache/test_test.c b/build/test/cache/test_test.c index 10bf57d..9b598de 100644 --- a/build/test/cache/test_test.c +++ b/build/test/cache/test_test.c @@ -21,3 +21,21 @@ void tearDown(void){ } + + + +void test_test1(void){ + + + + int result = probe(2); + + + + UnityAssertEqualNumber((UNITY_INT)((2)), (UNITY_INT)((result)), ( + +((void *)0) + +), (UNITY_UINT)(19), UNITY_DISPLAY_STYLE_INT); + +} diff --git a/build/test/out/c/test_test.o b/build/test/out/c/test_test.o index 15c5e3f..92a9d92 100644 Binary files a/build/test/out/c/test_test.o and b/build/test/out/c/test_test.o differ diff --git a/build/test/out/c/test_test_runner.o b/build/test/out/c/test_test_runner.o index bc5fd61..eba08f5 100644 Binary files a/build/test/out/c/test_test_runner.o and b/build/test/out/c/test_test_runner.o differ diff --git a/build/test/out/test_test.out b/build/test/out/test_test.out index b96d135..509234c 100755 Binary files a/build/test/out/test_test.out and b/build/test/out/test_test.out differ diff --git a/build/test/preprocess/files/test_test.c b/build/test/preprocess/files/test_test.c index 10bf57d..9b598de 100644 --- a/build/test/preprocess/files/test_test.c +++ b/build/test/preprocess/files/test_test.c @@ -21,3 +21,21 @@ void tearDown(void){ } + + + +void test_test1(void){ + + + + int result = probe(2); + + + + UnityAssertEqualNumber((UNITY_INT)((2)), (UNITY_INT)((result)), ( + +((void *)0) + +), (UNITY_UINT)(19), UNITY_DISPLAY_STYLE_INT); + +} diff --git a/build/test/results/test_Spiellogik.pass b/build/test/results/test_Spiellogik.pass index 57c1e63..0b597c3 100644 --- a/build/test/results/test_Spiellogik.pass +++ b/build/test/results/test_Spiellogik.pass @@ -23,4 +23,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.0033078729993576417 +:time: 0.0022634060005657375 diff --git a/build/test/results/test_test.pass b/build/test/results/test_test.pass index b40fc77..256ebb6 100644 --- a/build/test/results/test_test.pass +++ b/build/test/results/test_test.pass @@ -2,13 +2,17 @@ :source: :path: test :file: test_test.c -:successes: [] +:successes: +- :test: test_test1 + :line: 15 + :message: '' + :unity_test_time: 0 :failures: [] :ignores: [] :counts: - :total: 0 - :passed: 0 + :total: 1 + :passed: 1 :failed: 0 :ignored: 0 :stdout: [] -:time: 0.0013589549998869188 +:time: 0.0015701629999966826 diff --git a/build/test/runners/test_test_runner.c b/build/test/runners/test_test_runner.c index d7c7c6a..1d607b0 100644 --- a/build/test/runners/test_test_runner.c +++ b/build/test/runners/test_test_runner.c @@ -10,6 +10,7 @@ char* GlobalOrderError; /*=======External Functions This Runner Calls=====*/ extern void setUp(void); extern void tearDown(void); +extern void test_test1(void); /*=======Mock Management=====*/ @@ -42,10 +43,39 @@ void verifyTest(void) CMock_Verify(); } +/*=======Test Runner Used To Run Each Test=====*/ +static void run_test(UnityTestFunction func, const char* name, UNITY_LINE_TYPE line_num) +{ + Unity.CurrentTestName = name; + Unity.CurrentTestLineNumber = line_num; +#ifdef UNITY_USE_COMMAND_LINE_ARGS + if (!UnityTestMatches()) + return; +#endif + Unity.NumberOfTests++; + UNITY_CLR_DETAILS(); + UNITY_EXEC_TIME_START(); + CMock_Init(); + if (TEST_PROTECT()) + { + setUp(); + func(); + } + if (TEST_PROTECT()) + { + tearDown(); + CMock_Verify(); + } + CMock_Destroy(); + UNITY_EXEC_TIME_STOP(); + UnityConcludeTest(); +} + /*=======MAIN=====*/ int main(void) { UnityBegin("test_test.c"); + run_test(test_test1, "test_test1", 15); return UnityEnd(); } diff --git a/test/test_Spiellogik.c b/test/test_Spiellogik.c index bf49757..2d28061 100644 --- a/test/test_Spiellogik.c +++ b/test/test_Spiellogik.c @@ -30,4 +30,4 @@ void test_feldFrei_Verhalten_bei_freiem_Feld(void){ int result = feldFrei(realU, 11, 12); TEST_ASSERT_EQUAL_INT(1, result); -} \ No newline at end of file +}