Skip to content

Commit f28fd3a

Browse files
committed
Add test of raw and byte strings with suffix
1 parent e62ab4b commit f28fd3a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,12 @@ fn literal_suffix() {
109109
assert_eq!(token_count("1._0"), 3);
110110
assert_eq!(token_count("1._m"), 3);
111111
assert_eq!(token_count("\"\"s"), 1);
112+
assert_eq!(token_count("r\"\"r"), 1);
113+
assert_eq!(token_count("b\"\"b"), 1);
114+
assert_eq!(token_count("br\"\"br"), 1);
115+
assert_eq!(token_count("r#\"\"#r"), 1);
116+
assert_eq!(token_count("'c'c"), 1);
117+
assert_eq!(token_count("b'b'b"), 1);
112118
}
113119

114120
#[test]

0 commit comments

Comments
 (0)