mirror of
https://github.com/tiffany352/rink-rs
synced 2024-11-10 13:44:15 +00:00
Test escape sequences between single quotes
This commit is contained in:
parent
72a4e8e01f
commit
94de4c033a
1 changed files with 6 additions and 0 deletions
|
@ -486,3 +486,9 @@ fn test_digits() {
|
|||
"approx. 7.11801620446533345187845043255947530269622802734375 (dimensionless)",
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_escapes() {
|
||||
test("'ab\\'cd\\n\\t'", "1 ab'cd\n\t (ab'cd\n\t)");
|
||||
test("'x\\a'", "Expected term, got <Invalid escape sequence \\a>");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue