checkpoint
[sbp.git] / tests / regression.tc
index eb29cf8..af600f3 100644 (file)
@@ -344,11 +344,18 @@ testcase {
 testcase {
 
     input "a+2";
-    output "";
+    output "Plus:{left:{Foo} right:{{2}}}";
 
     s       = Expr
     Expr    = [0-9]++
-            | Plus:: left:Expra "+" right:Expr
+            | Plus:: (left::Expra) "+" (right::Expr)
     Expra   = Foo:: ("a" | "b")
 
 }
+
+testcase {
+    input "aaaaa";
+    s = top:: z (q::"a"*) z
+    z = a:: "a"
+}
+