diff --git a/src/test_/java/CollisionCheckerTest.java b/src/test_/java/CollisionCheckerTest.java index 513c34d..767bda1 100644 --- a/src/test_/java/CollisionCheckerTest.java +++ b/src/test_/java/CollisionCheckerTest.java @@ -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); + + //assert + assertFalse(result); + } } diff --git a/target/classes/classpath.index b/target/classes/classpath.index new file mode 100644 index 0000000..e5601ba Binary files /dev/null and b/target/classes/classpath.index differ diff --git a/target/test-classes/BShipTest.class b/target/test-classes/BShipTest.class new file mode 100644 index 0000000..277a7c9 Binary files /dev/null and b/target/test-classes/BShipTest.class differ diff --git a/target/test-classes/classpath.index b/target/test-classes/classpath.index new file mode 100644 index 0000000..c12ec5a Binary files /dev/null and b/target/test-classes/classpath.index differ