reformat code

This commit is contained in:
Andrin Fassbind 2021-11-12 11:33:32 +01:00
parent 3bfcf18800
commit e40c7ddcf6
2 changed files with 2 additions and 2 deletions

View File

@ -184,7 +184,7 @@ public class Text {
String[] words = text.get(i).trim().toLowerCase().split("[. ,:?!\"'-]+"); String[] words = text.get(i).trim().toLowerCase().split("[. ,:?!\"'-]+");
for (String word : words) { for (String word : words) {
//Words get formatted consistently //Words get formatted consistently
if(word.length()>0){ if (word.length() > 0) {
counter = 1; counter = 1;
firstLetter = word.substring(0, 1); firstLetter = word.substring(0, 1);
restLetters = word.substring(1); restLetters = word.substring(1);

View File

@ -95,7 +95,7 @@ public class TextTest {
*/ */
@Test @Test
void indexTestTwo() { void indexTestTwo() {
txt.add("Word word Word Test"); txt.add("\"Word word Word Test");
stringListe = txt.index(); stringListe = txt.index();
Assertions.assertEquals("Word 1", stringListe.get(0)); Assertions.assertEquals("Word 1", stringListe.get(0));
} }