@ -109,4 +109,16 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
//assert
assertTrue(result);
}
@Test
void WhenBallXCoordinateIsLessThanMaxWidth_didTouchRightEdge_ReturnsFalse() {
// arrange
Integer ballXCoordinate = 75;
Integer maxWidth = 123;
// act
Boolean result = collisionChecker.didTouchRightEdge(ballXCoordinate, maxWidth);
assertFalse(result);