diff --git a/src/Text.java b/src/Text.java index afada4b..fcd6264 100644 --- a/src/Text.java +++ b/src/Text.java @@ -184,7 +184,7 @@ public class Text { String[] words = text.get(i).trim().toLowerCase().split("[. ,:?!\"'-]+"); for (String word : words) { //Words get formatted consistently - if(word.length()>0){ + if (word.length() > 0) { counter = 1; firstLetter = word.substring(0, 1); restLetters = word.substring(1); diff --git a/test/TextTest.java b/test/TextTest.java index 2a72b28..028f7d2 100644 --- a/test/TextTest.java +++ b/test/TextTest.java @@ -95,7 +95,7 @@ public class TextTest { */ @Test void indexTestTwo() { - txt.add("Word word Word Test"); + txt.add("\"Word word Word Test"); stringListe = txt.index(); Assertions.assertEquals("Word 1", stringListe.get(0)); }