X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=tests%2Ftestcase.g;h=af69317fbf69e1116094fa29d3f9d671efdcf926;hb=f283ebfd51424e761bea2dd5b3042cf765ca9ee6;hp=c7d9d57e049b9fafc9600beeb39e4e301ea95b46;hpb=028c0419378758379cef3b058f5b0cb9ff9639fc;p=sbp.git diff --git a/tests/testcase.g b/tests/testcase.g index c7d9d57..af69317 100644 --- a/tests/testcase.g +++ b/tests/testcase.g @@ -1,9 +1,9 @@ -ts ::= !ws tests !ws => ts -tests ::= test */ ws -ws ::= w* -test ::= ^"testcase" "{" input output +/ ws Grammar "}" /ws - | ^"testcase" "{" input Grammar "}" /ws - | ^"tibcase" "{" input output +/ ws Grammar "}" /ws - | ^"tibcase" "{" input Grammar "}" /ws -output ::= ^"output" Quoted ";" /ws -input ::= "input" Quoted ";" /ws +ts = ts:: !ws tests !ws +tests = test */ ws +ws = w* +test = ^"testcase" "{" input output +/ ws (grammar::Grammar) "}" /ws + | ^"testcase" "{" input (grammar::Grammar) "}" /ws + | ^"tibcase" "{" input output +/ ws (grammar::Grammar) "}" /ws + | ^"tibcase" "{" input (grammar::Grammar) "}" /ws +output = ^"output" Quoted ";" /ws +input = "input" Quoted ";" /ws