diff --git a/lalrpop-test/src/main.rs b/lalrpop-test/src/main.rs index 4a097f8..3481d0f 100644 --- a/lalrpop-test/src/main.rs +++ b/lalrpop-test/src/main.rs @@ -401,6 +401,10 @@ fn issue_55_test1() { #[test] fn unit_test1() { assert!(unit::parse_Expr("3 + 4 * 5").is_ok()); +} + +#[test] +fn unit_test2() { assert!(unit::parse_Expr("3 + +").is_err()); }