From dc798600e7c06f9fdbc30de6dd57c6ee3ca14d05 Mon Sep 17 00:00:00 2001 From: schrom01 Date: Thu, 11 Nov 2021 22:42:10 +0100 Subject: [PATCH] change in TextTest.java --- test/TextTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/TextTest.java b/test/TextTest.java index 8091360..376dc42 100644 --- a/test/TextTest.java +++ b/test/TextTest.java @@ -58,8 +58,11 @@ public class TextTest { Assertions.assertFalse(txt.replace(3, "alt", "neu")); Assertions.assertTrue(txt.replace(1, "erste", "zweite")); Assertions.assertTrue(txt.replace("zweite", "erste")); + Assertions.assertTrue(txt.add("Text Text hallo Text")); + Assertions.assertTrue(txt.replace("Text", "Test")); Assertions.assertEquals("Das ist der zweite Beispiel Text.", txt.getText().get(0)); Assertions.assertEquals("Das ist der erste Beispiel Text.", txt.getText().get(1)); + Assertions.assertEquals("Test Test hallo Test", txt.getText().get(2)); } /**