@ -96,4 +96,16 @@ public class CollisionCheckerTest {
//assert
assertFalse(result);
}
@Test
void WhenBallXCoordinateIsMoreOrEqualToMaxWidth_didTouchRightEdge_ReturnsTrue() {
// arrange
Integer ballXCoordinate = 124;
Integer maxWidth = 123;
// act
Boolean result = collisionChecker.didTouchRightEdge(ballXCoordinate, maxWidth);
assertTrue(result);