summaryrefslogtreecommitdiffstats
path: root/test/jrummikub
diff options
context:
space:
mode:
Diffstat (limited to 'test/jrummikub')
-rw-r--r--test/jrummikub/model/TableTest.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/jrummikub/model/TableTest.java b/test/jrummikub/model/TableTest.java
index 17ed8c8..25cc3c3 100644
--- a/test/jrummikub/model/TableTest.java
+++ b/test/jrummikub/model/TableTest.java
@@ -69,4 +69,15 @@ public class TableTest {
}
assertEquals(2, counter);
}
+
+ @Test
+ public void testFindSet() {
+ Stone targetStone = new Stone(BLACK);
+ StoneSet testSet = new StoneSet(Arrays.asList(new Stone(1, RED), targetStone,
+ new Stone(3, RED)));
+ testTable.drop(testSet, new Position(0,0));
+
+ StoneSet foundSet = testTable.findStoneSet(targetStone);
+ assertSame(testSet, foundSet);
+ }
}