test/rust: add missing escaped chars

Signed-off-by: cancaicai <2356672992@qq.com>
This commit is contained in:
cancaicai 2025-02-16 16:36:04 +08:00
parent 26f9416929
commit bc2acb3dd0
No known key found for this signature in database
GPG key ID: AAFE81DBD71A0DB3

View file

@ -67,6 +67,8 @@ mod test_parse {
("\\r", EscapedChar::CarriageReturn),
("\\t", EscapedChar::Tab),
("\\\"", EscapedChar::DoubleQuote),
("\\\'", EscapedChar::SingleQuote),
("\\$", EscapedChar::Dollar),
] {
let actual = parse_expr_with(&arena, arena.alloc(to_input(string)));
let expected_slice = to_expected(*escaped, &arena);