Commit ba58ea7e authored by Alexander's avatar Alexander
Browse files

Simplify output concatenation by adding an empty output after every readLine

parent a2fd8cad
...@@ -47,7 +47,6 @@ public class Assignment1TestBase extends TestBase { ...@@ -47,7 +47,6 @@ public class Assignment1TestBase extends TestBase {
* @param acceptable specify whether these args are ok or not * @param acceptable specify whether these args are ok or not
*/ */
protected void testArgs(String args[], boolean acceptable) { protected void testArgs(String args[], boolean acceptable) {
Terminal.concatOutput = false;
Terminal.IN_TEST.add("quit"); Terminal.IN_TEST.add("quit");
StringBuilder strb = new StringBuilder(); StringBuilder strb = new StringBuilder();
for (int i = 0; i < args.length; i++) { for (int i = 0; i < args.length; i++) {
......
...@@ -104,7 +104,6 @@ public abstract class TestBase { ...@@ -104,7 +104,6 @@ public abstract class TestBase {
*/ */
@BeforeEach @BeforeEach
protected void initTest(TestInfo testInfo) { protected void initTest(TestInfo testInfo) {
Terminal.concatOutput = true;
alwaysShowLog = false; alwaysShowLog = false;
isPerformanceTest = false; isPerformanceTest = false;
testPassed = false; testPassed = false;
...@@ -214,7 +213,6 @@ public abstract class TestBase { ...@@ -214,7 +213,6 @@ public abstract class TestBase {
if (alwaysShowLog) if (alwaysShowLog)
printLog(); printLog();
logData.clear(); logData.clear();
Terminal.concatOutput = true;
} }
...@@ -293,7 +291,6 @@ public abstract class TestBase { ...@@ -293,7 +291,6 @@ public abstract class TestBase {
* @param testedMethod is a reference to a tested program * @param testedMethod is a reference to a tested program
*/ */
protected void testUsingPairs(TestPair[] testPairs, Runnable testedMethod) { protected void testUsingPairs(TestPair[] testPairs, Runnable testedMethod) {
Terminal.concatOutput = true;
log.info("Testing using " + testPairs.length + " pairs...\n"); log.info("Testing using " + testPairs.length + " pairs...\n");
for (TestPair testPair : testPairs) { for (TestPair testPair : testPairs) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment