diff --git a/build/test/cache/test_Modules.c b/build/test/cache/test_Modules.c index 43a4215..eb9126a 100644 --- a/build/test/cache/test_Modules.c +++ b/build/test/cache/test_Modules.c @@ -711,3 +711,39 @@ void test_generateField_check_if_third_live_is_displayed_correctly(void) ), (UNITY_UINT)(324), UNITY_DISPLAY_STYLE_INT); } + + + +void test_generateField_check_if_wind_form_right_correct_displayed(void){ + + + + int output = 1; + + windForce = -2; + + + + + + generateField(); + + + + if (field[19][1] == '<') + + { + + output = 0; + + } + + + + UnityAssertEqualNumber((UNITY_INT)((0)), (UNITY_INT)((output)), ( + + ((void *)0) + + ), (UNITY_UINT)(340), UNITY_DISPLAY_STYLE_INT); + +} diff --git a/build/test/out/c/test_Modules.o b/build/test/out/c/test_Modules.o index 0c90510..ee4c627 100644 Binary files a/build/test/out/c/test_Modules.o and b/build/test/out/c/test_Modules.o differ diff --git a/build/test/out/c/test_Modules_runner.o b/build/test/out/c/test_Modules_runner.o index 028292d..255cedc 100644 Binary files a/build/test/out/c/test_Modules_runner.o and b/build/test/out/c/test_Modules_runner.o differ diff --git a/build/test/out/test_Modules.out b/build/test/out/test_Modules.out index 781e5be..9c36424 100755 Binary files a/build/test/out/test_Modules.out and b/build/test/out/test_Modules.out differ diff --git a/build/test/preprocess/files/test_Modules.c b/build/test/preprocess/files/test_Modules.c index 43a4215..eb9126a 100644 --- a/build/test/preprocess/files/test_Modules.c +++ b/build/test/preprocess/files/test_Modules.c @@ -711,3 +711,39 @@ void test_generateField_check_if_third_live_is_displayed_correctly(void) ), (UNITY_UINT)(324), UNITY_DISPLAY_STYLE_INT); } + + + +void test_generateField_check_if_wind_form_right_correct_displayed(void){ + + + + int output = 1; + + windForce = -2; + + + + + + generateField(); + + + + if (field[19][1] == '<') + + { + + output = 0; + + } + + + + UnityAssertEqualNumber((UNITY_INT)((0)), (UNITY_INT)((output)), ( + + ((void *)0) + + ), (UNITY_UINT)(340), UNITY_DISPLAY_STYLE_INT); + +} diff --git a/build/test/results/test_Modules.pass b/build/test/results/test_Modules.pass index 2f83917..5a63704 100644 --- a/build/test/results/test_Modules.pass +++ b/build/test/results/test_Modules.pass @@ -71,11 +71,15 @@ :line: 310 :message: '' :unity_test_time: 0 +- :test: test_generateField_check_if_wind_form_right_correct_displayed + :line: 327 + :message: '' + :unity_test_time: 0 :failures: [] :ignores: [] :counts: - :total: 17 - :passed: 17 + :total: 18 + :passed: 18 :failed: 0 :ignored: 0 :stdout: @@ -357,7 +361,7 @@ - "| |" - "| |" - "| V |" -- "| \e[H\e[2J\e[3J / \\ |" +- "| \e[H\e[2J\e[3J\e[H\e[2J\e[3J / \\ |" - "| / \\ |" - "| |" - "| |" @@ -404,4 +408,33 @@ - "| |" - "| |" - "|=======================|" -:time: 0.016900140999950963 +- "|=======================|" +- "| OXX 000 <2 |" +- "|=======================|" +- "| \\ |" +- "| |" +- "| |" +- "| |" +- "| |" +- "| |" +- "| |" +- "| V |" +- "| / \\ |" +- "| / \\ |" +- "| |" +- "| |" +- "| |" +- "| |" +- "| |" +- "| |" +- "| |" +- "| |" +- "| |" +- "| |" +- "| |" +- "| |" +- "| |" +- "| |" +- "| |" +- "|=======================|" +:time: 0.012060183000357938 diff --git a/build/test/runners/test_Modules_runner.c b/build/test/runners/test_Modules_runner.c index 746a893..221066d 100644 --- a/build/test/runners/test_Modules_runner.c +++ b/build/test/runners/test_Modules_runner.c @@ -27,6 +27,7 @@ extern void test_generateField_negative_points_not_possible(void); extern void test_generateField_check_if_first_live_is_displayed_correctly(void); extern void test_generateField_check_if_second_live_is_displayed_correctly(void); extern void test_generateField_check_if_third_live_is_displayed_correctly(void); +extern void test_generateField_check_if_wind_form_right_correct_displayed(void); /*=======Mock Management=====*/ @@ -108,6 +109,7 @@ int main(void) run_test(test_generateField_check_if_first_live_is_displayed_correctly, "test_generateField_check_if_first_live_is_displayed_correctly", 276); run_test(test_generateField_check_if_second_live_is_displayed_correctly, "test_generateField_check_if_second_live_is_displayed_correctly", 293); run_test(test_generateField_check_if_third_live_is_displayed_correctly, "test_generateField_check_if_third_live_is_displayed_correctly", 310); + run_test(test_generateField_check_if_wind_form_right_correct_displayed, "test_generateField_check_if_wind_form_right_correct_displayed", 327); return UnityEnd(); } diff --git a/test/test_Modules.c b/test/test_Modules.c index 2524d79..414d092 100644 --- a/test/test_Modules.c +++ b/test/test_Modules.c @@ -324,4 +324,20 @@ void test_generateField_check_if_third_live_is_displayed_correctly(void) TEST_ASSERT_EQUAL(0, output); } +void test_generateField_check_if_wind_form_right_correct_displayed(void){ + /* arrange */ + int output = 1; + windForce = -2; + + /* act */ + generateField(); + + if (field[19][1] == '<') + { + output = 0; + } + /* assert */ + TEST_ASSERT_EQUAL(0, output); +} + #endif // TEST \ No newline at end of file