removed PositionVectorNotValidException.java

This commit is contained in:
Andrin Fassbind 2022-03-24 17:53:35 +01:00
parent a2dcc1b0d8
commit 7b6fc70e05
1 changed files with 4 additions and 12 deletions

View File

@ -112,22 +112,14 @@ class GameTest {
@Test
void carTurnCorrect() {
try {
game.doCarTurn(RIGHT);
Assertions.assertEquals(new PositionVector(1, 0), game.getCarVelocity(0));
} catch (PositionVectorNotValidException positionVectorNotValidException) {
positionVectorNotValidException.printStackTrace();
}
}
@Test
void carCrash() {
try {
game.doCarTurn(PositionVector.Direction.UP);
Assertions.assertTrue(game.onlyOneCarLeft());
} catch (PositionVectorNotValidException positionVectorNotValidException) {
positionVectorNotValidException.printStackTrace();
}
}
}