reformat code

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

No files matched your search

+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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));
}