repl: do not print null is last expression type is unit

This commit is contained in:
Stepan Koltsov
2012-06-13 22:43:11 +04:00
parent 55ffd797a4
commit 87871d0f91
3 changed files with 26 additions and 5 deletions
@@ -60,7 +60,7 @@ public class ReplInterpreterTest {
String code = t.first;
String expected = t.second;
Object actual = repl.eval(code);
Object actual = repl.eval(code).getValue();
String actualString = actual != null ? actual.toString() : "null";
Assert.assertEquals("after evaluation of: " + code, actualString, expected);