|
|
@ -32,11 +32,11 @@ void test_checkCollision(void){ |
|
|
|
// Test Ball trifft rechte und linke Wand |
|
|
|
ball.x = 0; |
|
|
|
int result1 = checkCollision(ball, paddle.y, paddle.y); |
|
|
|
TEST_ASSERT_EQUAL_INT(2, result1); |
|
|
|
TEST_ASSERT_EQUAL_INT(1, result1); |
|
|
|
|
|
|
|
ball.x = WIDTH - 1; |
|
|
|
int result2 = checkCollision(ball, paddle.y, paddle.y); |
|
|
|
TEST_ASSERT_EQUAL_INT(1, result2); |
|
|
|
TEST_ASSERT_EQUAL_INT(2, result2); |
|
|
|
|
|
|
|
// Test Ball trifft obere und untere Wand |
|
|
|
ball.x = 5; |
|
|
|