mirror of
https://github.com/tiffany352/rink-rs
synced 2024-11-10 13:44:15 +00:00
Test escape handling in gnu_units
This commit is contained in:
parent
999f59bc78
commit
30fcab3528
1 changed files with 11 additions and 1 deletions
|
@ -597,7 +597,17 @@ mod tests {
|
|||
Expr::Error,
|
||||
"Expected term, got Error(\"Expected LF or CRLF line endings\")"
|
||||
);
|
||||
expect!("\\\r\n1", Expr::Const, 1.into());
|
||||
|
||||
expect!("\\\r\n1", Expr::Const, 1.into())
|
||||
expect!(
|
||||
"\\a",
|
||||
Expr::Error,
|
||||
"Expected term, got Error(\"Invalid escape: \\\\a\")"
|
||||
);
|
||||
expect!(
|
||||
"\\",
|
||||
Expr::Error,
|
||||
"Expected term, got Error(\"Unexpected EOF\")"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue