diff --git a/test/Pong/test_checkCollision.c b/test/Pong/test_checkCollision.c index 7d63643..e2628be 100644 --- a/test/Pong/test_checkCollision.c +++ b/test/Pong/test_checkCollision.c @@ -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;