summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAyato Tokubi <attokubi@amazon.com>2021-07-14 18:41:24 +0000
committerGitHub <noreply@github.com>2021-07-14 14:41:24 -0400
commit6ce2a089a89e1e1f844a6cd2bd8eb7a1980bea8f (patch)
treeb6e6539e49cceffd824ea98bd623d4df2305fc0e
parent844910e44fc9433e5ac4ba03ade72292a32326e8 (diff)
chore(repl): fix integration test input to not throw parse errors (#11401)
-rw-r--r--cli/tests/integration/repl_tests.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/cli/tests/integration/repl_tests.rs b/cli/tests/integration/repl_tests.rs
index abf3321a8..bfb849ed6 100644
--- a/cli/tests/integration/repl_tests.rs
+++ b/cli/tests/integration/repl_tests.rs
@@ -14,9 +14,9 @@ fn pty_multiline() {
master.write_all(b"'{'\n").unwrap();
master.write_all(b"'('\n").unwrap();
master.write_all(b"'['\n").unwrap();
- master.write_all(b"/{/'\n").unwrap();
- master.write_all(b"/(/'\n").unwrap();
- master.write_all(b"/[/'\n").unwrap();
+ master.write_all(b"/{/\n").unwrap();
+ master.write_all(b"/\\(/\n").unwrap();
+ master.write_all(b"/\\[/\n").unwrap();
master.write_all(b"console.log(\"{test1} abc {test2} def {{test3}}\".match(/{([^{].+?)}/));\n").unwrap();
master.write_all(b"close();\n").unwrap();
@@ -31,8 +31,8 @@ fn pty_multiline() {
assert!(output.contains("\"(\""));
assert!(output.contains("\"[\""));
assert!(output.contains("/{/"));
- assert!(output.contains("/(/"));
- assert!(output.contains("/{/"));
+ assert!(output.contains("/\\(/"));
+ assert!(output.contains("/\\[/"));
assert!(output.contains("[ \"{test1}\", \"test1\" ]"));
});
}