diff options
-rw-r--r-- | test/jrummikub/model/StoneTrayTest.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/jrummikub/model/StoneTrayTest.java b/test/jrummikub/model/StoneTrayTest.java index 3456229..7ae711c 100644 --- a/test/jrummikub/model/StoneTrayTest.java +++ b/test/jrummikub/model/StoneTrayTest.java @@ -49,6 +49,12 @@ public class StoneTrayTest { assertEquals(42, secondPosition.getX(), 0.00001); assertEquals(8.5, secondPosition.getY(), 0.00001); } + + @Test + public void testDropNull() { + testTray.drop(null, new Position(0,0)); + assertFalse(testTray.iterator().hasNext()); + } // Leftshift @Test |