|
|
@ -148,6 +148,8 @@ class MatchfieldShipTest { |
|
|
|
Arguments.of("one ship is within the coordinates", new Coordinate(0, 0), 1, 2, |
|
|
|
new Coordinate[] { new Coordinate(0, 0) }, false), |
|
|
|
Arguments.of("no ship is within the coordinates", new Coordinate(1, 1), 0, 5, new Coordinate[] {}, |
|
|
|
true)); |
|
|
|
true), |
|
|
|
Arguments.of("one of the coordinates is hit, others on free fields", new Coordinate(5, 5), 1, 3, |
|
|
|
new Coordinate[] { new Coordinate(5, 7), new Coordinate(5, 8), new Coordinate(5, 9) }, false)); |
|
|
|
} |
|
|
|
} |