Refactor REPL tests: use empty line instead of "null"

This commit is contained in:
Alexander Udalov
2014-07-27 21:17:40 +02:00
parent 44246349a5
commit c6dfa866cd
12 changed files with 1 additions and 17 deletions
@@ -116,7 +116,7 @@ public abstract class AbstractReplInterpreterTest extends UsefulTestCase {
else {
actual = lineResult.getErrorText();
}
String actualString = StringUtil.convertLineSeparators(actual != null ? actual.toString() : "null").replaceFirst("\n$", "");
String actualString = StringUtil.convertLineSeparators(actual != null ? actual.toString() : "").replaceFirst("\n$", "");
if (line.matchType == MatchType.EQUALS) {
Assert.assertEquals("after evaluation of: " + line.code, expected, actualString);