Browse Source

refactoring: werteausgabe

remotes/origin/branchJulia
fdai8040 11 months ago
parent
commit
e6a9a6f903
  1. 4
      test/Pong/test_checkCollision.c

4
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;

Loading…
Cancel
Save