Test classify for more than two jokers
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@304 72836036-5685-4462-b002-a69064685172
This commit is contained in:
parent
699a0b0a29
commit
cb50f92edd
1 changed files with 25 additions and 2 deletions
|
@ -84,8 +84,8 @@ public class StoneSetTest {
|
|||
public void runs() {
|
||||
assertSet(RUN, 6, Arrays.asList(new Stone(1, RED), new Stone(2, RED),
|
||||
new Stone(3, RED)));
|
||||
assertSet(RUN, 22, Arrays.asList(new Stone(4, BLUE), new Stone(5, BLUE),
|
||||
new Stone(6, BLUE), new Stone(7, BLUE)));
|
||||
assertSet(RUN, 22, Arrays.asList(new Stone(4, BLUE),
|
||||
new Stone(5, BLUE), new Stone(6, BLUE), new Stone(7, BLUE)));
|
||||
}
|
||||
|
||||
/** */
|
||||
|
@ -158,6 +158,29 @@ public class StoneSetTest {
|
|||
12, BLACK), new Stone(7, BLUE)));
|
||||
}
|
||||
|
||||
/** */
|
||||
@Test
|
||||
public void manyJokersValid() {
|
||||
assertSet(GROUP, 3 * 13, Arrays.asList(new Stone(RED),
|
||||
new Stone(RED), new Stone(RED)));
|
||||
assertSet(GROUP, 4 * 13, Arrays.asList(new Stone(RED),
|
||||
new Stone(RED), new Stone(RED), new Stone(RED)));
|
||||
assertSet(RUN, 5 * 11, Arrays.asList(new Stone(RED),
|
||||
new Stone(RED), new Stone(RED), new Stone(RED), new Stone(RED)));
|
||||
assertSet(RUN, 5 * 10, Arrays.asList(new Stone(RED),
|
||||
new Stone(RED), new Stone(RED), new Stone(RED), new Stone(12, RED)));
|
||||
}
|
||||
|
||||
/** */
|
||||
@Test
|
||||
public void manyJokersInvalid() {
|
||||
List<Stone> stones = new ArrayList<Stone>();
|
||||
for (int i = 0; i < 14; i++) {
|
||||
stones.add(new Stone(RED));
|
||||
}
|
||||
assertSet(INVALID, 0, stones);
|
||||
}
|
||||
|
||||
// invalid Split
|
||||
/** */
|
||||
@Test
|
||||
|
|
Reference in a new issue