reformat code
This commit is contained in:
parent
3bfcf18800
commit
e40c7ddcf6
|
@ -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);
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue