Testing for new split behavior
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@86 72836036-5685-4462-b002-a69064685172
This commit is contained in:
parent
54fa9085e7
commit
a39b31d893
1 changed files with 4 additions and 5 deletions
|
@ -94,18 +94,17 @@ public class StoneSetTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
// invalid Split
|
// invalid Split
|
||||||
@Test(expected = IndexOutOfBoundsException.class)
|
@Test
|
||||||
public void testSplitInvalidLow() {
|
public void testSplitInvalidLow() {
|
||||||
StoneSet testSet = createTestSet();
|
StoneSet testSet = createTestSet();
|
||||||
testSet.splitAt(0);
|
assertNull(testSet.splitAt(0).getFirst());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(expected = IndexOutOfBoundsException.class)
|
@Test
|
||||||
public void testSplitInvalidHigh() {
|
public void testSplitInvalidHigh() {
|
||||||
StoneSet testSet = createTestSet();
|
StoneSet testSet = createTestSet();
|
||||||
testSet.splitAt(3);
|
assertNull(testSet.splitAt(3).getSecond());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// valid Split
|
// valid Split
|
||||||
|
|
Reference in a new issue