Browse Source

Zwölfter Unit Test

main
fdai7037 2 years ago
parent
commit
dc11077aac
  1. 38
      build/test/cache/test_Modules.c

38
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);
}
Loading…
Cancel
Save