Text.java index and createWordlist methode cleanup

This commit is contained in:
Andrin Fassbind
2021-11-05 17:59:26 +01:00
parent 7ac12a8ad5
commit edba4d5d8c
2 changed files with 28 additions and 25 deletions
+6 -3
View File
@@ -16,10 +16,13 @@ public class TextTest {
@Test
void indexTest() {
txt.add("Hallo Hallo zusammen !test!");
txt.add("Hallo ?Hallo> zusammen !test!");
txt.add("Hallo, wie zusammen");
txt.add("Hallo,wie wie zusammen");
txt.add("Hallo! Wie wie zusammen");
sListe= txt.index();
Assertions.assertEquals("Hallo 1, 2, 3",sListe.get(0));
for (String str : sListe){
System.out.println(str);
}
Assertions.assertEquals("Hallo 1, 2, 3",sListe.get(0));
}
}