From e40c7ddcf64012383bea4ab2073433cc6132b6b4 Mon Sep 17 00:00:00 2001 From: Andrin Fassbind Date: Fri, 12 Nov 2021 11:33:32 +0100 Subject: [PATCH] reformat code --- src/Text.java | 2 +- test/TextTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)); }