X-Git-Url: http://git.megacz.com/?p=sbp.git;a=blobdiff_plain;f=tests%2Fregression.tc;h=af600f3ccc8df303c91a2729577e7b44fd7fbcd7;hp=eb29cf86a75fd4e8d1f5a2e6cc55aa5425e2989a;hb=45d799349e635f1a99e3974e4504a43d5a7aaf33;hpb=017b5ed533ca298fe5ae1078e2a59da1d2d95ea2 diff --git a/tests/regression.tc b/tests/regression.tc index eb29cf8..af600f3 100644 --- a/tests/regression.tc +++ b/tests/regression.tc @@ -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" +} +