summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2022-03-02 13:39:08 +0900
committerGitHub <noreply@github.com>2022-03-02 13:39:08 +0900
commitb751e97a014f486375c9b8c99446de237c7dbede (patch)
treec7d9fd2425520c9c033ef8a9a3cc1f2f26a211f1 /cli/tests
parent7fc5bfe51b7d405aaa5293ec6f1a8f1e9119aea2 (diff)
fix(repl): fix null eval result (#13804)
Co-authored-by: Satya Rohith <me@satyarohith.com>
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/integration/repl_tests.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/cli/tests/integration/repl_tests.rs b/cli/tests/integration/repl_tests.rs
index 571b65fa2..edade5d92 100644
--- a/cli/tests/integration/repl_tests.rs
+++ b/cli/tests/integration/repl_tests.rs
@@ -34,6 +34,17 @@ fn pty_multiline() {
}
#[test]
+fn pty_null() {
+ util::with_pty(&["repl"], |mut console| {
+ console.write_line("null");
+ console.write_line("close();");
+
+ let output = console.read_all_output();
+ assert!(output.contains("null"));
+ });
+}
+
+#[test]
fn pty_unpaired_braces() {
util::with_pty(&["repl"], |mut console| {
console.write_line(")");