More tests

This commit is contained in:
Niko Matsakis 2015-06-13 22:09:14 -04:00
parent 70280285bf
commit 3ab3bee0e1

View File

@ -41,3 +41,8 @@ fn named_choice_plus() {
assert!(parse_grammar(r#"grammar Foo { Expr = <n:Alt+>; }"#).is_ok());
}
#[test]
fn token_expr() {
assert!(parse_grammar(r#"grammar Foo { token Expr where { "foo" => "bar"; } }"#).is_ok());
}