|
@ -62,6 +62,26 @@ void test_win_SchlangegroesseAusreichend(void){ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void test_win_SchlangeNichtAusreichend(void){ |
|
|
|
|
|
|
|
|
|
|
|
int realU[20][20] = {0}; |
|
|
|
|
|
|
|
|
|
|
|
realU[15][5] = 15; |
|
|
|
|
|
|
|
|
|
|
|
int result = win(realU); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UnityAssertEqualNumber((UNITY_INT)((0)), (UNITY_INT)((result)), ( |
|
|
|
|
|
|
|
|
|
|
|
((void *)0) |
|
|
|
|
|
|
|
|
|
|
|
), (UNITY_UINT)(36), UNITY_DISPLAY_STYLE_INT); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
void test_feldFrei_Verhalten_bei_belegtem_Feld(void){ |
|
|
void test_feldFrei_Verhalten_bei_belegtem_Feld(void){ |
|
|
|
|
|
|
|
|
int realU[20][20]; |
|
|
int realU[20][20]; |
|
@ -76,7 +96,7 @@ void test_feldFrei_Verhalten_bei_belegtem_Feld(void){ |
|
|
|
|
|
|
|
|
((void *)0) |
|
|
((void *)0) |
|
|
|
|
|
|
|
|
), (UNITY_UINT)(35), UNITY_DISPLAY_STYLE_INT); |
|
|
|
|
|
|
|
|
), (UNITY_UINT)(43), UNITY_DISPLAY_STYLE_INT); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -96,7 +116,7 @@ void test_feldFrei_Verhalten_bei_freiem_Feld(void){ |
|
|
|
|
|
|
|
|
((void *)0) |
|
|
((void *)0) |
|
|
|
|
|
|
|
|
), (UNITY_UINT)(43), UNITY_DISPLAY_STYLE_INT); |
|
|
|
|
|
|
|
|
), (UNITY_UINT)(51), UNITY_DISPLAY_STYLE_INT); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -122,7 +142,7 @@ void test_lose_up_freiesFeld(void){ |
|
|
|
|
|
|
|
|
((void *)0) |
|
|
((void *)0) |
|
|
|
|
|
|
|
|
), (UNITY_UINT)(54), UNITY_DISPLAY_STYLE_INT); |
|
|
|
|
|
|
|
|
), (UNITY_UINT)(62), UNITY_DISPLAY_STYLE_INT); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -146,7 +166,7 @@ void test_lose_up_belegtesFeld(void){ |
|
|
|
|
|
|
|
|
((void *)0) |
|
|
((void *)0) |
|
|
|
|
|
|
|
|
), (UNITY_UINT)(64), UNITY_DISPLAY_STYLE_INT); |
|
|
|
|
|
|
|
|
), (UNITY_UINT)(72), UNITY_DISPLAY_STYLE_INT); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -170,7 +190,7 @@ void test_lose_up_Obererrand(void){ |
|
|
|
|
|
|
|
|
((void *)0) |
|
|
((void *)0) |
|
|
|
|
|
|
|
|
), (UNITY_UINT)(74), UNITY_DISPLAY_STYLE_INT); |
|
|
|
|
|
|
|
|
), (UNITY_UINT)(82), UNITY_DISPLAY_STYLE_INT); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -194,7 +214,7 @@ void test_lose_down_freiesFeld(void){ |
|
|
|
|
|
|
|
|
((void *)0) |
|
|
((void *)0) |
|
|
|
|
|
|
|
|
), (UNITY_UINT)(84), UNITY_DISPLAY_STYLE_INT); |
|
|
|
|
|
|
|
|
), (UNITY_UINT)(92), UNITY_DISPLAY_STYLE_INT); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -220,7 +240,7 @@ void test_lose_down_belegtesFeld(void){ |
|
|
|
|
|
|
|
|
((void *)0) |
|
|
((void *)0) |
|
|
|
|
|
|
|
|
), (UNITY_UINT)(95), UNITY_DISPLAY_STYLE_INT); |
|
|
|
|
|
|
|
|
), (UNITY_UINT)(103), UNITY_DISPLAY_STYLE_INT); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -244,7 +264,7 @@ void test_lose_left_freiesFeld(void){ |
|
|
|
|
|
|
|
|
((void *)0) |
|
|
((void *)0) |
|
|
|
|
|
|
|
|
), (UNITY_UINT)(105), UNITY_DISPLAY_STYLE_INT); |
|
|
|
|
|
|
|
|
), (UNITY_UINT)(113), UNITY_DISPLAY_STYLE_INT); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -270,7 +290,7 @@ void test_lose_left_belegtesFeld(void){ |
|
|
|
|
|
|
|
|
((void *)0) |
|
|
((void *)0) |
|
|
|
|
|
|
|
|
), (UNITY_UINT)(116), UNITY_DISPLAY_STYLE_INT); |
|
|
|
|
|
|
|
|
), (UNITY_UINT)(124), UNITY_DISPLAY_STYLE_INT); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -294,7 +314,7 @@ void test_lose_left_linkerRand(void){ |
|
|
|
|
|
|
|
|
((void *)0) |
|
|
((void *)0) |
|
|
|
|
|
|
|
|
), (UNITY_UINT)(126), UNITY_DISPLAY_STYLE_INT); |
|
|
|
|
|
|
|
|
), (UNITY_UINT)(134), UNITY_DISPLAY_STYLE_INT); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -318,7 +338,7 @@ void test_lose_right_freiesFeld(void){ |
|
|
|
|
|
|
|
|
((void *)0) |
|
|
((void *)0) |
|
|
|
|
|
|
|
|
), (UNITY_UINT)(136), UNITY_DISPLAY_STYLE_INT); |
|
|
|
|
|
|
|
|
), (UNITY_UINT)(144), UNITY_DISPLAY_STYLE_INT); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -344,7 +364,7 @@ void test_lose_right_belegtesFeld(void){ |
|
|
|
|
|
|
|
|
((void *)0) |
|
|
((void *)0) |
|
|
|
|
|
|
|
|
), (UNITY_UINT)(147), UNITY_DISPLAY_STYLE_INT); |
|
|
|
|
|
|
|
|
), (UNITY_UINT)(155), UNITY_DISPLAY_STYLE_INT); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -368,6 +388,6 @@ void test_lose_right_rechterRand(void){ |
|
|
|
|
|
|
|
|
((void *)0) |
|
|
((void *)0) |
|
|
|
|
|
|
|
|
), (UNITY_UINT)(157), UNITY_DISPLAY_STYLE_INT); |
|
|
|
|
|
|
|
|
), (UNITY_UINT)(165), UNITY_DISPLAY_STYLE_INT); |
|
|
|
|
|
|
|
|
} |
|
|
} |