X-Git-Url: http://git.megacz.com/?p=sbp.git;a=blobdiff_plain;f=tests%2Ftestcase.g;h=5212e91edd0805067a6732e84f73ee0338678d2b;hp=9e151760ac12a637528a4dd26c685d43372f874c;hb=bc2858abab718e5c3d0cf07c4f18f353f57832e6;hpb=81b213c3a4345486c2f96f1c44e93d4e38134102 diff --git a/tests/testcase.g b/tests/testcase.g index 9e15176..5212e91 100644 --- a/tests/testcase.g +++ b/tests/testcase.g @@ -1,7 +1,8 @@ -ts ::= ws tests ws => ts -tests ::= test %% ws -ws !::= w* -test ::= ^"testcase" "{" input output $$ ws grammar "}" /ws - | ^"testcase" "{" input grammar "}" /ws -output ::= "output" quoted ";" /ws -input ::= "input" quoted ";" /ws +#import tests/meta.g + +ts = ts:: ws! tests ws! +tests = test */ ws +test = tca:: "testcase" "{" input (o::(output +/ ws)) (grammaro::Grammar) "}" /ws + | tcb:: "testcase" "{" input (grammaro::Grammar) "}" /ws +output = "output" Quoted ";" /ws +input = "input" Quoted ";" /ws