Browse Source

created Test for SplitAnswer method

master
Leon Montag 2 years ago
parent
commit
0efdd72f50
  1. 11
      src/test/java/game/runGameTest.java

11
src/test/java/game/runGameTest.java

@ -58,5 +58,16 @@ class runGameTest {
} }
@Test
public void testSplitAnswers() {
String[] StringToSplit = {"Das,ist,ein,Test", "1,2,3,4"};
String[] parts = runGame.SplitAnswers(StringToSplit, 1);
assertEquals(4, parts.length);
assertEquals("1", parts[0]);
assertEquals("2", parts[1]);
assertEquals("3", parts[2]);
assertEquals("4", parts[3]);
}
} }
Loading…
Cancel
Save