REPL tests based on direct interaction with input and output stream. Includes multiline tests.

This commit is contained in:
Alon Salant
2013-01-21 10:02:04 -08:00
parent 537c5f4b70
commit 47bd05e9a0
4 changed files with 74 additions and 37 deletions

View File

@@ -67,7 +67,7 @@
rli.prompt(true);
return;
}
if (!rli.line.match(/^\s*$/)) {
if (!((rli.line == null) || rli.line.match(/^\s*$/))) {
return;
}
multiline.enabled = !multiline.enabled;