|
@ -42,7 +42,7 @@ void test_checkCollision(void){ |
|
|
ball.x = 5; |
|
|
ball.x = 5; |
|
|
ball.y = 0; |
|
|
ball.y = 0; |
|
|
int result3 = checkCollision(ball, paddle.y, paddle.y); |
|
|
int result3 = checkCollision(ball, paddle.y, paddle.y); |
|
|
TEST_ASSERT_EQUAL_INT(1, result3); |
|
|
|
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(0, result3); |
|
|
|
|
|
|
|
|
ball.y = HEIGHT - 1; |
|
|
ball.y = HEIGHT - 1; |
|
|
int result4 = checkCollision(ball, paddle.y, paddle.y); |
|
|
int result4 = checkCollision(ball, paddle.y, paddle.y); |
|
|