From dc11077aac53bf47a0233090481007cc3c35b2a7 Mon Sep 17 00:00:00 2001 From: fdai7037 Date: Fri, 10 Feb 2023 18:51:50 +0100 Subject: [PATCH] =?UTF-8?q?Zw=C3=B6lfter=20Unit=20Test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/test/cache/test_Modules.c | 38 +++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/build/test/cache/test_Modules.c b/build/test/cache/test_Modules.c index 5c2cac4..dc68a47 100644 --- a/build/test/cache/test_Modules.c +++ b/build/test/cache/test_Modules.c @@ -493,3 +493,41 @@ void test_generateField_check_if_first_life_away(void) ), (UNITY_UINT)(227), UNITY_DISPLAY_STYLE_INT); } + + + +void test_generateField_check_if_second_life_away(void) + +{ + + + + int output = 1; + + lifeCount = 1; + + + + + + generateField(); + + + + if (field[2][1] == 'X') + + { + + output = 0; + + } + + + + UnityAssertEqualNumber((UNITY_INT)((0)), (UNITY_INT)((output)), ( + + ((void *)0) + + ), (UNITY_UINT)(244), UNITY_DISPLAY_STYLE_INT); + +}