diff --git a/src/protocol/tests/parser_literals.rs b/src/protocol/tests/parser_literals.rs index cb21deeeac5996b32ef97fb50745c95619486f7c..29ab95774c778f867b8ecbc46072e01ff5e39f90 100644 --- a/src/protocol/tests/parser_literals.rs +++ b/src/protocol/tests/parser_literals.rs @@ -62,4 +62,9 @@ fn test_string_literals() { Tester::new_single_source_expect_err("invalid escaped character", " func test() -> string { return \"\\y\"; } ").error(|e| { e.assert_msg_has(0, "unsupported escape character 'y'"); }); + + // Note sure if this should always be in here... + Tester::new_single_source_expect_err("non-ASCII string", " + func test() -> string { return \"💧\"; } + ").error(|e| { e.assert_msg_has(0, "non-ASCII character in string literal"); }); } \ No newline at end of file