Skip to content

Commit 8cd51ff

Browse files
committed
Add test for raw byte CRLF translation
1 parent d463274 commit 8cd51ff

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test/run-pass/lexer-crlf-line-endings-string-literal-doc-comment.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ literal";
3030
let s = r"string
3131
literal";
3232
assert_eq!(s, "string\nliteral");
33+
let s = br"byte string
34+
literal";
35+
assert_eq!(s, "byte string\nliteral".as_bytes());
3336

3437
// validate that our source file has CRLF endings
3538
let source = include_str!("lexer-crlf-line-endings-string-literal-doc-comment.rs");

0 commit comments

Comments
 (0)