Skip to content

Commit 0af589a

Browse files
committed
Add test of carriage return newline in raw string
1 parent 7c3b8ed commit 0af589a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ fn literal_string() {
8383
assert_eq!(Literal::string("didn't").to_string(), "\"didn't\"");
8484
}
8585

86+
#[test]
87+
fn literal_raw_string() {
88+
"r\"\r\n\"".parse::<TokenStream>().unwrap();
89+
}
90+
8691
#[test]
8792
fn literal_character() {
8893
assert_eq!(Literal::character('x').to_string(), "'x'");

0 commit comments

Comments
 (0)