0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-03 09:31:22 -05:00

chore(repl): fix integration test input to not throw parse errors (#11401)

This commit is contained in:
Ayato Tokubi 2021-07-14 18:41:24 +00:00 committed by GitHub
parent 844910e44f
commit 6ce2a089a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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\" ]"));
});
}