diff --git a/test/TextTest.java b/test/TextTest.java index 028f7d2..61d1372 100644 --- a/test/TextTest.java +++ b/test/TextTest.java @@ -109,4 +109,13 @@ public class TextTest { stringListe = txt.index(); Assertions.assertEquals(0, stringListe.size()); } + + /** + * Test Method to check if index is working with empty Strings + */ + @Test + void indexTestFour() { + txt.add(""); + txt.index(); + } }