Skip to content

Commit 59a2a01

Browse files
committed
testcases: tests related to the edition 2024 reservations:
- sequences of hashes - forms related to "guarded string literal" forms (rfc3593, pr123951)
1 parent 8c3b726 commit 59a2a01

File tree

1 file changed

+23
-4
lines changed

1 file changed

+23
-4
lines changed

src/testcases.rs

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,11 @@ pub const LONGLIST: &[&str] = [
146146
"@=",
147147
"~=",
148148

149+
"##",
150+
"###",
151+
"####",
152+
"#####",
153+
149154
"x ➖ y",
150155

151156

@@ -488,11 +493,25 @@ pub const LONGLIST: &[&str] = [
488493
"'r#super",
489494
"'r#Self",
490495

491-
//// Possible future forms
492-
493-
// See rfc3593
494-
r##" #"xxx"# "##,
496+
//// Forms related to the "Guarded string literals" 2024 reservations
497+
" #\"xxx\"# ",
498+
" ##\"xxx\"## ",
499+
" ###\"xxx\"### ",
500+
" ####\"xxx\"#### ",
501+
" #####\"xxx\"##### ",
502+
" #\"xxx\" ",
503+
" ##\"xxx\"# ",
504+
" #\"xxx",
505+
" #\"\"# ",
506+
" ##\"\"## ",
507+
" #\"\" ",
508+
" ##\"\"# ",
509+
" #\"",
510+
" ###############################################################################################################################################################################################################################################################\"aaa\"############################################################################################################################################################################################################################################################### ",
511+
" ################################################################################################################################################################################################################################################################\"aaa\"################################################################################################################################################################################################################################################################ ",
512+
"£#\"\"#",
495513
"#'xxx'#",
514+
"#''#",
496515

497516

498517
//// Lifetime/label non-ascii

0 commit comments

Comments
 (0)