|
@ -52,7 +52,7 @@ void test_checkCollision(void){ |
|
|
ball.x = paddle.x - 1; |
|
|
ball.x = paddle.x - 1; |
|
|
ball.y = paddle.y + 1; |
|
|
ball.y = paddle.y + 1; |
|
|
int result5 = checkCollision(ball, paddle.y, paddle.y); |
|
|
int result5 = checkCollision(ball, paddle.y, paddle.y); |
|
|
TEST_ASSERT_EQUAL_INT(1, result5); |
|
|
|
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(2, result5); |
|
|
|
|
|
|
|
|
ball.x = paddle.x + 1; |
|
|
ball.x = paddle.x + 1; |
|
|
ball.y = paddle.y + 1; |
|
|
ball.y = paddle.y + 1; |
|
|