From 3ab3bee0e132baa1f35e6c1f85ed2c041b6a4176 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Sat, 13 Jun 2015 22:09:14 -0400 Subject: [PATCH] More tests --- src/parser/test.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/parser/test.rs b/src/parser/test.rs index d8d152e..8ec0c1a 100644 --- a/src/parser/test.rs +++ b/src/parser/test.rs @@ -41,3 +41,8 @@ fn named_choice_plus() { assert!(parse_grammar(r#"grammar Foo { Expr = ; }"#).is_ok()); } +#[test] +fn token_expr() { + assert!(parse_grammar(r#"grammar Foo { token Expr where { "foo" => "bar"; } }"#).is_ok()); +} +