X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=tests%2Ftestcase.g;h=ba23723dbf59c3405f12cbfcb7c9bb00438db2ac;hb=80a840adb5df31ba5edd20ecac23086ad09a5ca1;hp=280812d20cf8d7e9ca51801f696a39d21110279a;hpb=86e7e1298601b60df964e3c0a71f3fe3cca230b8;p=sbp.git diff --git a/tests/testcase.g b/tests/testcase.g index 280812d..ba23723 100644 --- a/tests/testcase.g +++ b/tests/testcase.g @@ -1,9 +1,6 @@ -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 +test = tca:: "testcase" "{" input (o::(output +/ ws)) (grammaro::(grammar::Grammar)) "}" /ws + | tcb:: "testcase" "{" input (grammaro::(grammar::Grammar)) "}" /ws +output = "output" Quoted ";" /ws +input = "input" Quoted ";" /ws