|
@ -493,3 +493,41 @@ void test_generateField_check_if_first_life_away(void) |
|
|
), (UNITY_UINT)(227), UNITY_DISPLAY_STYLE_INT); |
|
|
), (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); |
|
|
|
|
|
|
|
|
|
|
|
} |