Add test for incorrect sequence prefix
@@ -1095,6 +1095,19 @@ mod tests {
};
}
+ #[test]
+ fn incorrect_prefix() {
+ fails_with! {
+ parser: PestParser,
+ input: "a = { ~ b}",
+ rule: Rule::grammar_rules,
+ positives: vec![Rule::expression],
+ negatives: vec![],
+ pos: 6
+ };
+ }
+
+
#[test]
fn wrong_op() {
fails_with! {
