summaryrefslogtreecommitdiffstats
path: root/core/test/ch/asynk
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-07 11:38:24 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-07 11:38:24 +0200
commit1670f5afbf1fa49a5d7e56829149bb58a379cfd4 (patch)
treec6270df4c71b96d480862997157738c5367463eb /core/test/ch/asynk
parent585221c04d1a0c1e4325d61870803cdb0db53034 (diff)
downloadRustAndDust-1670f5afbf1fa49a5d7e56829149bb58a379cfd4.zip
RustAndDust-1670f5afbf1fa49a5d7e56829149bb58a379cfd4.tar.gz
Board: possiblePaths(p, from, to, points) remove 'from' and 'to' from point Set 'points'
Diffstat (limited to 'core/test/ch/asynk')
-rw-r--r--core/test/ch/asynk/tankontank/BoardUtils.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/test/ch/asynk/tankontank/BoardUtils.java b/core/test/ch/asynk/tankontank/BoardUtils.java
index f691cbf..757e315 100644
--- a/core/test/ch/asynk/tankontank/BoardUtils.java
+++ b/core/test/ch/asynk/tankontank/BoardUtils.java
@@ -102,19 +102,19 @@ public class BoardUtils
int n = b.possiblePaths(p, from, to, points);
assertTrue(n == 1);
- assertTrue(points.size() == 2);
+ assertTrue(points.size() == 0);
to.set(4, 3);
n = b.possiblePaths(p, from, to, points);
assertTrue(n == 8);
- assertTrue(points.size() == 8);
+ assertTrue(points.size() == 6);
GridPoint2 p0 = new GridPoint2(3, 3);
n = b.possiblePathsFilterToggle(p0, points);
assertTrue(n == 1);
- assertTrue(points.size() == 3);
+ assertTrue(points.size() == 1);
to.set(5, 3);