|
|
@ -36,6 +36,32 @@ void test_test1(void){ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void test_win_SchlangegroesseAusreichend(void){ |
|
|
|
|
|
|
|
int realU[20][20] = {0}; |
|
|
|
|
|
|
|
realU[15][19] = (20*20)-1; |
|
|
|
|
|
|
|
int result = win(realU); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UnityAssertEqualNumber((UNITY_INT)((1)), (UNITY_INT)((result)), ( |
|
|
|
|
|
|
|
((void *)0) |
|
|
|
|
|
|
|
), (UNITY_UINT)(27), UNITY_DISPLAY_STYLE_INT); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void test_feldFrei_Verhalten_bei_belegtem_Feld(void){ |
|
|
|
|
|
|
|
int realU[20][20]; |
|
|
@ -50,7 +76,7 @@ void test_feldFrei_Verhalten_bei_belegtem_Feld(void){ |
|
|
|
|
|
|
|
((void *)0) |
|
|
|
|
|
|
|
), (UNITY_UINT)(24), UNITY_DISPLAY_STYLE_INT); |
|
|
|
), (UNITY_UINT)(35), UNITY_DISPLAY_STYLE_INT); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
@ -70,7 +96,7 @@ void test_feldFrei_Verhalten_bei_freiem_Feld(void){ |
|
|
|
|
|
|
|
((void *)0) |
|
|
|
|
|
|
|
), (UNITY_UINT)(32), UNITY_DISPLAY_STYLE_INT); |
|
|
|
), (UNITY_UINT)(43), UNITY_DISPLAY_STYLE_INT); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
@ -96,7 +122,7 @@ void test_lose_up_freiesFeld(void){ |
|
|
|
|
|
|
|
((void *)0) |
|
|
|
|
|
|
|
), (UNITY_UINT)(43), UNITY_DISPLAY_STYLE_INT); |
|
|
|
), (UNITY_UINT)(54), UNITY_DISPLAY_STYLE_INT); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
@ -120,7 +146,7 @@ void test_lose_up_belegtesFeld(void){ |
|
|
|
|
|
|
|
((void *)0) |
|
|
|
|
|
|
|
), (UNITY_UINT)(53), UNITY_DISPLAY_STYLE_INT); |
|
|
|
), (UNITY_UINT)(64), UNITY_DISPLAY_STYLE_INT); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
@ -144,7 +170,7 @@ void test_lose_up_Obererrand(void){ |
|
|
|
|
|
|
|
((void *)0) |
|
|
|
|
|
|
|
), (UNITY_UINT)(63), UNITY_DISPLAY_STYLE_INT); |
|
|
|
), (UNITY_UINT)(74), UNITY_DISPLAY_STYLE_INT); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
@ -168,7 +194,7 @@ void test_lose_down_freiesFeld(void){ |
|
|
|
|
|
|
|
((void *)0) |
|
|
|
|
|
|
|
), (UNITY_UINT)(73), UNITY_DISPLAY_STYLE_INT); |
|
|
|
), (UNITY_UINT)(84), UNITY_DISPLAY_STYLE_INT); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
@ -194,7 +220,7 @@ void test_lose_down_belegtesFeld(void){ |
|
|
|
|
|
|
|
((void *)0) |
|
|
|
|
|
|
|
), (UNITY_UINT)(84), UNITY_DISPLAY_STYLE_INT); |
|
|
|
), (UNITY_UINT)(95), UNITY_DISPLAY_STYLE_INT); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
@ -218,7 +244,7 @@ void test_lose_left_freiesFeld(void){ |
|
|
|
|
|
|
|
((void *)0) |
|
|
|
|
|
|
|
), (UNITY_UINT)(94), UNITY_DISPLAY_STYLE_INT); |
|
|
|
), (UNITY_UINT)(105), UNITY_DISPLAY_STYLE_INT); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
@ -244,7 +270,7 @@ void test_lose_left_belegtesFeld(void){ |
|
|
|
|
|
|
|
((void *)0) |
|
|
|
|
|
|
|
), (UNITY_UINT)(105), UNITY_DISPLAY_STYLE_INT); |
|
|
|
), (UNITY_UINT)(116), UNITY_DISPLAY_STYLE_INT); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
@ -268,7 +294,7 @@ void test_lose_left_linkerRand(void){ |
|
|
|
|
|
|
|
((void *)0) |
|
|
|
|
|
|
|
), (UNITY_UINT)(115), UNITY_DISPLAY_STYLE_INT); |
|
|
|
), (UNITY_UINT)(126), UNITY_DISPLAY_STYLE_INT); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
@ -292,7 +318,7 @@ void test_lose_right_freiesFeld(void){ |
|
|
|
|
|
|
|
((void *)0) |
|
|
|
|
|
|
|
), (UNITY_UINT)(125), UNITY_DISPLAY_STYLE_INT); |
|
|
|
), (UNITY_UINT)(136), UNITY_DISPLAY_STYLE_INT); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
@ -318,7 +344,7 @@ void test_lose_right_belegtesFeld(void){ |
|
|
|
|
|
|
|
((void *)0) |
|
|
|
|
|
|
|
), (UNITY_UINT)(136), UNITY_DISPLAY_STYLE_INT); |
|
|
|
), (UNITY_UINT)(147), UNITY_DISPLAY_STYLE_INT); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
@ -342,6 +368,6 @@ void test_lose_right_rechterRand(void){ |
|
|
|
|
|
|
|
((void *)0) |
|
|
|
|
|
|
|
), (UNITY_UINT)(146), UNITY_DISPLAY_STYLE_INT); |
|
|
|
), (UNITY_UINT)(157), UNITY_DISPLAY_STYLE_INT); |
|
|
|
|
|
|
|
} |