|
@ -101,4 +101,13 @@ void test_lose_left_linkerRand(void){ |
|
|
int result = lose(realU, 'l'); |
|
|
int result = lose(realU, 'l'); |
|
|
|
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(1, result); |
|
|
TEST_ASSERT_EQUAL_INT(1, result); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//Test zur Bewegung nach Rechts |
|
|
|
|
|
void test_lose_right_freiesFeld(void){ |
|
|
|
|
|
int realU[20][20] = { 0 }; |
|
|
|
|
|
realU[5][12] = 4; |
|
|
|
|
|
int result = lose(realU, 'r'); |
|
|
|
|
|
|
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(0, result); |
|
|
} |
|
|
} |