From 7ac12a8ad5bfdb5eac0c4351019f67821749770d Mon Sep 17 00:00:00 2001 From: Leonardo Brandenberger Date: Fri, 5 Nov 2021 16:29:29 +0100 Subject: [PATCH] Splitted print class into printUnformated and printFormated. And fixed errors in print Unformated --- src/TextOutput.java | 2 +- test/TextOutputTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TextOutput.java b/src/TextOutput.java index f302150..f9ccee9 100644 --- a/src/TextOutput.java +++ b/src/TextOutput.java @@ -53,7 +53,7 @@ public class TextOutput { } System.out.print(word + " "); currentLength += word.length() + 1; - } + } } System.out.println(); //added } diff --git a/test/TextOutputTest.java b/test/TextOutputTest.java index 7be2eb4..341cd8f 100644 --- a/test/TextOutputTest.java +++ b/test/TextOutputTest.java @@ -15,7 +15,7 @@ class TextOutputTest { public void setup(){ textOutput = new TextOutput(); textOutput.formatFix(9); - //textOutput.formatRaw(); + textOutput.formatRaw(); text = new ArrayList<>(); text.add("123456789"); text.add("1234");