Commit 62674df2 authored by Alexander's avatar Alexander
Browse files

Add consistency to error message

parent cf6acc53
...@@ -6,7 +6,7 @@ public class TestPair { ...@@ -6,7 +6,7 @@ public class TestPair {
return "Fail with " + this + "\nThe program provided no output for that command"; return "Fail with " + this + "\nThe program provided no output for that command";
} }
return "Fail with " + this + "\nOutput was" return "Fail with " + this + "\nOutput was:"
+ (actualOutput.contains("\n") ? "\n" : " ") + (actualOutput.contains("\n") ? "\n" : " ")
+ actualOutput + (actualOutput.isEmpty() ? "(empty)" : ""); + actualOutput + (actualOutput.isEmpty() ? "(empty)" : "");
} }
......
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