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 {
* @param acceptable specify whether these args are ok or not
*/
protected void testArgs(String args[], boolean acceptable) {
Terminal.concatOutput = false;
Terminal.IN_TEST.add("quit");
StringBuilder strb = new StringBuilder();
for (int i = 0; i < args.length; i++) {
......
......@@ -104,7 +104,6 @@ public abstract class TestBase {
*/
@BeforeEach
protected void initTest(TestInfo testInfo) {
Terminal.concatOutput = true;
alwaysShowLog = false;
isPerformanceTest = false;
testPassed = false;
......@@ -214,7 +213,6 @@ public abstract class TestBase {
if (alwaysShowLog)
printLog();
logData.clear();
Terminal.concatOutput = true;
}
......@@ -293,7 +291,6 @@ public abstract class TestBase {
* @param testedMethod is a reference to a tested program
*/
protected void testUsingPairs(TestPair[] testPairs, Runnable testedMethod) {
Terminal.concatOutput = true;
log.info("Testing using " + testPairs.length + " pairs...\n");
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