Implemented Table, passes tests
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@90 72836036-5685-4462-b002-a69064685172
This commit is contained in:
parent
760f914494
commit
7b8732714d
2 changed files with 61 additions and 6 deletions
|
@ -50,7 +50,7 @@ public class TableTest {
|
|||
for (Object i : testTable) {
|
||||
counter++;
|
||||
}
|
||||
assertEquals(counter, 1);
|
||||
assertEquals(1, counter);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -58,7 +58,7 @@ public class TableTest {
|
|||
public void testPickUpStoneRun() {
|
||||
Stone targetStone = new Stone(BLACK);
|
||||
testTable.drop(new StoneSet(Arrays.asList(new Stone(1, RED), targetStone,
|
||||
new Stone(3, BLACK))), new Position(0,0));
|
||||
new Stone(3, RED))), new Position(0,0));
|
||||
assertTrue(testTable.isValid());
|
||||
testTable.pickUpStone(targetStone);
|
||||
assertFalse(testTable.isValid());
|
||||
|
@ -67,6 +67,6 @@ public class TableTest {
|
|||
for (Object i : testTable) {
|
||||
counter++;
|
||||
}
|
||||
assertEquals(counter, 2);
|
||||
assertEquals(2, counter);
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue