|
|
@ -11,7 +11,7 @@ void tearDown(void){ |
|
|
|
} |
|
|
|
|
|
|
|
//Test für sucheXWert |
|
|
|
void test_sucheXWertde(void){ |
|
|
|
void test_sucheXWert(void){ |
|
|
|
int realU[N][N] = {0}; |
|
|
|
realU[15][19] = 12; |
|
|
|
int result = sucheXWert(realU); |
|
|
@ -19,6 +19,15 @@ void test_sucheXWertde(void){ |
|
|
|
TEST_ASSERT_EQUAL_INT(15, result); |
|
|
|
} |
|
|
|
|
|
|
|
//Test für sucheYWert |
|
|
|
void test_sucheYWert(void){ |
|
|
|
int realU[N][N] = {0}; |
|
|
|
realU[15][19] = 12; |
|
|
|
int result = sucheYWert(realU); |
|
|
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(19, result); |
|
|
|
} |
|
|
|
|
|
|
|
//Tests für Funktion win |
|
|
|
|
|
|
|
//Testet ob die Schlange lang genug ist |
|
|
|