|
@ -46,13 +46,13 @@ void test_print_Schachfeld(void){ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UnityAssertEqualNumber((UNITY_INT)(UNITY_INT8 )((expected)), (UNITY_INT)(UNITY_INT8 )((Spielfeld[0][7])), ( |
|
|
|
|
|
|
|
|
UnityAssertEqualNumber((UNITY_INT)(UNITY_INT8 )((expected)), (UNITY_INT)(UNITY_INT8 )((Spielfeld[5][0])), ( |
|
|
|
|
|
|
|
|
((void *)0) |
|
|
((void *)0) |
|
|
|
|
|
|
|
|
), (UNITY_UINT)(26), UNITY_DISPLAY_STYLE_CHAR); |
|
|
), (UNITY_UINT)(26), UNITY_DISPLAY_STYLE_CHAR); |
|
|
|
|
|
|
|
|
UnityAssertEqualNumber((UNITY_INT)(UNITY_INT8 )((expected)), (UNITY_INT)(UNITY_INT8 )((Spielfeld[1][0])), ( |
|
|
|
|
|
|
|
|
UnityAssertEqualNumber((UNITY_INT)(UNITY_INT8 )((expected)), (UNITY_INT)(UNITY_INT8 )((Spielfeld[4][3])), ( |
|
|
|
|
|
|
|
|
((void *)0) |
|
|
((void *)0) |
|
|
|
|
|
|
|
@ -62,6 +62,42 @@ void test_print_Schachfeld(void){ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void test_print_Schachfeld_Turm(void){ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
char expected = 'T'; |
|
|
|
|
|
|
|
|
|
|
|
int x = 8; |
|
|
|
|
|
|
|
|
|
|
|
int y = 8; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
char** Spielfeld = create_Schachfeld(x, y); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UnityAssertEqualNumber((UNITY_INT)(UNITY_INT8 )((expected)), (UNITY_INT)(UNITY_INT8 )((Spielfeld[0][0])), ( |
|
|
|
|
|
|
|
|
|
|
|
((void *)0) |
|
|
|
|
|
|
|
|
|
|
|
), (UNITY_UINT)(40), UNITY_DISPLAY_STYLE_CHAR); |
|
|
|
|
|
|
|
|
|
|
|
UnityAssertEqualNumber((UNITY_INT)(UNITY_INT8 )((expected)), (UNITY_INT)(UNITY_INT8 )((Spielfeld[0][7])), ( |
|
|
|
|
|
|
|
|
|
|
|
((void *)0) |
|
|
|
|
|
|
|
|
|
|
|
), (UNITY_UINT)(41), UNITY_DISPLAY_STYLE_CHAR); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void test_read_input(void) { |
|
|
void test_read_input(void) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -116,7 +152,7 @@ void test_read_input(void) { |
|
|
|
|
|
|
|
|
((void *)0) |
|
|
((void *)0) |
|
|
|
|
|
|
|
|
), (UNITY_UINT)(49), UNITY_DISPLAY_STYLE_INT); |
|
|
|
|
|
|
|
|
), (UNITY_UINT)(63), UNITY_DISPLAY_STYLE_INT); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|