Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
9ffdfe6ba7
|
@ -62,7 +62,7 @@ public class TextOutput {
|
||||||
System.out.print(word);
|
System.out.print(word);
|
||||||
if(!(currentWordNumber == lastWordNumber)) {
|
if(!(currentWordNumber == lastWordNumber)) {
|
||||||
System.out.print(" ");
|
System.out.print(" ");
|
||||||
currentLength = word.length();
|
currentLength = word.length() + 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,5 +27,9 @@ class TextOutputTest {
|
||||||
@Test
|
@Test
|
||||||
public void print() {
|
public void print() {
|
||||||
textOutput.print(text);
|
textOutput.print(text);
|
||||||
|
System.out.println("fertig");
|
||||||
|
textOutput.formatRaw();
|
||||||
|
textOutput.print(text);
|
||||||
|
System.out.println("fertig");
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue