diff options
author | Edwin Cheng <[email protected]> | 2019-05-04 15:32:48 +0100 |
---|---|---|
committer | Edwin Cheng <[email protected]> | 2019-05-04 15:32:48 +0100 |
commit | 50f288db925c5473f45d43d355e6819032298d37 (patch) | |
tree | e30057667232f29d867dcf1432831e686a686b08 /crates/ra_mbe | |
parent | 0c4efbb2b61a1309f144add2e680909d42530519 (diff) |
Add test
Diffstat (limited to 'crates/ra_mbe')
-rw-r--r-- | crates/ra_mbe/src/mbe_parser.rs | 2 |
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"); |