|
@ -46,7 +46,7 @@ void test_checkCollision(void){ |
|
|
|
|
|
|
|
|
ball.y = HEIGHT - 1; |
|
|
ball.y = HEIGHT - 1; |
|
|
int result4 = checkCollision(ball, paddle.y, paddle.y); |
|
|
int result4 = checkCollision(ball, paddle.y, paddle.y); |
|
|
TEST_ASSERT_EQUAL_INT(1, result4); |
|
|
|
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(0, result4); |
|
|
|
|
|
|
|
|
// Test wenn Ball Paddle trifft |
|
|
// Test wenn Ball Paddle trifft |
|
|
ball.x = paddle.x - 1; |
|
|
ball.x = paddle.x - 1; |
|
|