File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -284,9 +284,13 @@ fn literal_suffix() {
284
284
assert_eq ! ( token_count( "1._m" ) , 3 ) ;
285
285
assert_eq ! ( token_count( "\" \" s" ) , 1 ) ;
286
286
assert_eq ! ( token_count( "r\" \" r" ) , 1 ) ;
287
+ assert_eq ! ( token_count( "r#\" \" #r" ) , 1 ) ;
287
288
assert_eq ! ( token_count( "b\" \" b" ) , 1 ) ;
288
289
assert_eq ! ( token_count( "br\" \" br" ) , 1 ) ;
289
- assert_eq ! ( token_count( "r#\" \" #r" ) , 1 ) ;
290
+ assert_eq ! ( token_count( "br#\" \" #br" ) , 1 ) ;
291
+ assert_eq ! ( token_count( "c\" \" c" ) , 1 ) ;
292
+ assert_eq ! ( token_count( "cr\" \" cr" ) , 1 ) ;
293
+ assert_eq ! ( token_count( "cr#\" \" #cr" ) , 1 ) ;
290
294
assert_eq ! ( token_count( "'c'c" ) , 1 ) ;
291
295
assert_eq ! ( token_count( "b'b'b" ) , 1 ) ;
292
296
assert_eq ! ( token_count( "0E" ) , 1 ) ;
@@ -437,6 +441,7 @@ fn fail() {
437
441
fail ( "\" \\ \r \" " ) ; // backslash carriage return
438
442
fail ( "'aa'aa" ) ;
439
443
fail ( "br##\" \" #" ) ;
444
+ fail ( "cr##\" \" #" ) ;
440
445
fail ( "\" \\ \n \u{85} \r \" " ) ;
441
446
}
442
447
You can’t perform that action at this time.
0 commit comments