Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/mbe/src/tests.rs')
| -rw-r--r-- | crates/mbe/src/tests.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/crates/mbe/src/tests.rs b/crates/mbe/src/tests.rs index fb68d35a4c..4a73b6fa05 100644 --- a/crates/mbe/src/tests.rs +++ b/crates/mbe/src/tests.rs @@ -100,6 +100,23 @@ fn check( } #[test] +fn unbalanced_brace() { + check( + Edition::CURRENT, + Edition::CURRENT, + r#" +() => { { } +"#, + r#""#, + expect![[r#" + SUBTREE $$ 1:[email protected]#2 1:[email protected]#2 + SUBTREE {} 0:[email protected]#2 0:[email protected]#2 + + {}"#]], + ); +} + +#[test] fn token_mapping_smoke_test() { check( Edition::CURRENT, |