aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorEdwin Cheng <[email protected]>2019-05-04 15:32:48 +0100
committerEdwin Cheng <[email protected]>2019-05-04 15:32:48 +0100
commit50f288db925c5473f45d43d355e6819032298d37 (patch)
treee30057667232f29d867dcf1432831e686a686b08 /crates
parent0c4efbb2b61a1309f144add2e680909d42530519 (diff)
Add test
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_mbe/src/mbe_parser.rs2
1 files changed, 2 insertions, 0 deletions
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 {
124 expect_err("invalid", "subtree"); 124 expect_err("invalid", "subtree");
125 125
126 is_valid("($i:ident) => ()"); 126 is_valid("($i:ident) => ()");
127 is_valid("($($i:ident)*) => ($_)");
128
127 expect_err("$i:ident => ()", "subtree"); 129 expect_err("$i:ident => ()", "subtree");
128 expect_err("($i:ident) ()", "`=`"); 130 expect_err("($i:ident) ()", "`=`");
129 expect_err("($($i:ident)_) => ()", "repeat"); 131 expect_err("($($i:ident)_) => ()", "repeat");