added testmethod indexTestFour in TextTest.java

This commit is contained in:
schrom01 2021-11-12 11:47:23 +01:00
parent e40c7ddcf6
commit e64590d931
1 changed files with 9 additions and 0 deletions

View File

@ -109,4 +109,13 @@ public class TextTest {
stringListe = txt.index(); stringListe = txt.index();
Assertions.assertEquals(0, stringListe.size()); Assertions.assertEquals(0, stringListe.size());
} }
/**
* Test Method to check if index is working with empty Strings
*/
@Test
void indexTestFour() {
txt.add("");
txt.index();
}
} }