diff --git a/src/test_/java/CollisionCheckerTest.java b/src/test_/java/CollisionCheckerTest.java index f262ff7..7e3e1c8 100644 --- a/src/test_/java/CollisionCheckerTest.java +++ b/src/test_/java/CollisionCheckerTest.java @@ -20,6 +20,18 @@ public class CollisionCheckerTest { // act Boolean result = collisionChecker.didTouchTopOrBottomEdge(ballYCoordinate, maxHeight); + //assert + assertTrue(result); + } + @Test + void WhenBallYCoordinateIsMoreOrEqualToMaxHeight_didTouchTopOrBottomEdge_ReturnsTrue() { + // arrange + Integer ballYCoordinate = 124; + Integer maxHeight = 123; + + // act + Boolean result = collisionChecker.didTouchTopOrBottomEdge(ballYCoordinate, maxHeight); + //assert assertTrue(result); }