From 50f288db925c5473f45d43d355e6819032298d37 Mon Sep 17 00:00:00 2001 From: Edwin Cheng Date: Sat, 4 May 2019 22:32:48 +0800 Subject: Add test --- crates/ra_mbe/src/mbe_parser.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crates/ra_mbe') diff --git a/crates/ra_mbe/src/mbe_parser.rs b/crates/ra_mbe/src/mbe_parser.rs index 110783689..8e1e31e7d 100644 --- a/crates/ra_mbe/src/mbe_parser.rs +++ b/crates/ra_mbe/src/mbe_parser.rs @@ -124,6 +124,8 @@ mod tests { expect_err("invalid", "subtree"); is_valid("($i:ident) => ()"); + is_valid("($($i:ident)*) => ($_)"); + expect_err("$i:ident => ()", "subtree"); expect_err("($i:ident) ()", "`=`"); expect_err("($($i:ident)_) => ()", "repeat"); -- cgit v1.2.3