Skip to content

Commit

Permalink
Add test for nested raw strings
Browse files Browse the repository at this point in the history
  • Loading branch information
pczarn committed Nov 24, 2023
1 parent 4bdffc3 commit 236d71c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions compiler/noirc_frontend/src/parser/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2590,6 +2590,12 @@ mod test {
Case { source: r###" r#"foo" # "###, expect: "(none)", errors: 2 },
// after identifier
Case { source: r###" bar#"foo"# "###, expect: "plain::bar", errors: 2 },
// nested
Case {
source: r###"r##"foo r#"bar"# r"baz" ### bye"##"###,
expect: r###"r##"foo r#"bar"# r"baz" ### bye"##"###,
errors: 0,
},
];

check_cases_with_errors(&cases[..], expression());
Expand Down

0 comments on commit 236d71c

Please sign in to comment.