summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/jrummikub/model/StoneSetTest.java16
1 files changed, 10 insertions, 6 deletions
diff --git a/test/jrummikub/model/StoneSetTest.java b/test/jrummikub/model/StoneSetTest.java
index d929783..b2d6a46 100644
--- a/test/jrummikub/model/StoneSetTest.java
+++ b/test/jrummikub/model/StoneSetTest.java
@@ -60,6 +60,7 @@ public class StoneSetTest {
assertSet(false, Arrays.asList(new Stone(RED), new Stone(BLACK),
new Stone(1, RED), new Stone(2, RED)));
}
+
@Test
public void sameColor() {
assertSet(false, Arrays.asList(new Stone(1, RED), new Stone(1, RED),
@@ -71,23 +72,26 @@ public class StoneSetTest {
@Test
public void incorrectOrder() {
assertSet(false, Arrays.asList(new Stone(4, RED), new Stone(6, RED),
- new Stone(5, RED)));
+ new Stone(5, RED)));
assertSet(false, Arrays.asList(new Stone(4, RED), new Stone(6, RED),
- new Stone(RED)));
+ new Stone(RED)));
assertSet(false, Arrays.asList(new Stone(4, RED), new Stone(RED),
new Stone(5, RED)));
}
-
+
@Test
public void otherInvalid() {
-
+
assertSet(false, Arrays.asList(new Stone(4, RED), new Stone(5, RED),
- new Stone(7, RED)));
+ new Stone(7, RED)));
assertSet(false, Arrays.asList(new Stone(4, RED), new Stone(5, BLUE),
new Stone(6, RED)));
assertSet(false, Arrays.asList(new Stone(4, RED), new Stone(5, RED)));
-
+ assertSet(false, Arrays.asList(new Stone(4, BLUE), new Stone(5, RED),
+ new Stone(6, RED)));
+
}
+
// invalid Split
@Test(expected = AssertionError.class)
public void testSplitInvalidLow() {