From e64590d931d216679a50bbed85fa499a692902d1 Mon Sep 17 00:00:00 2001 From: schrom01 Date: Fri, 12 Nov 2021 11:47:23 +0100 Subject: [PATCH] added testmethod indexTestFour in TextTest.java --- test/TextTest.java | 9 +++++++++ 1 file changed, 9 insertions(+) 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(); + } }