|
|
@ -28,6 +28,27 @@ void test_sucheYWert(void){ |
|
|
|
TEST_ASSERT_EQUAL_INT(19, result); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//Test für sucheXWert |
|
|
|
void test_sucheXWert2(void){ |
|
|
|
int realU[N][N] = {0}; |
|
|
|
realU[16][13] = 12; |
|
|
|
int result = sucheXWert(realU); |
|
|
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(16, result); |
|
|
|
} |
|
|
|
|
|
|
|
//Test für sucheYWert |
|
|
|
void test_sucheYWert2(void){ |
|
|
|
int realU[N][N] = {0}; |
|
|
|
realU[16][13] = 12; |
|
|
|
int result = sucheYWert(realU); |
|
|
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(13, result); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//Tests für Funktion win |
|
|
|
|
|
|
|
//Testet ob die Schlange lang genug ist |
|
|
|