diff options
Diffstat (limited to 'core/test/ch/asynk/tankontank')
-rw-r--r-- | core/test/ch/asynk/tankontank/BoardUtils.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/core/test/ch/asynk/tankontank/BoardUtils.java b/core/test/ch/asynk/tankontank/BoardUtils.java index 21a65be..295d198 100644 --- a/core/test/ch/asynk/tankontank/BoardUtils.java +++ b/core/test/ch/asynk/tankontank/BoardUtils.java @@ -108,8 +108,17 @@ public class BoardUtils Helpers.FakePawn p = new Helpers.FakePawn(3); HashSet<GridPoint2> points = new HashSet<GridPoint2>(); - b.possiblePaths(p, 2, 2, 4, 3, points); + int n = b.possiblePaths(p, 2, 2, 4, 3, points); + assertTrue(n == 8); assertTrue(points.size() == 8); + + n = b.possiblePathsFilterAdd(3, 3, points); + assertTrue(n == 5); + assertTrue(points.size() == 6); + + n = b.possiblePathsFilterAdd(4, 4, points); + assertTrue(n == 1); + assertTrue(points.size() == 4); } @Test |