X-Git-Url: http://git.megacz.com/?p=sbp.git;a=blobdiff_plain;f=tests%2Ftestcase.g;fp=tests%2Ftestcase.g;h=2491600ea0eb3e8536accef2298615ea5dec7fc8;hp=01ce08b2ebe3e19ba43fbcca62c3752bb5388e7f;hb=9773bb358e8010b24cc487f7cae19edcf8aea5d0;hpb=0dd3f65037405b4a9dd03d1825b30a6557433892 diff --git a/tests/testcase.g b/tests/testcase.g index 01ce08b..2491600 100644 --- a/tests/testcase.g +++ b/tests/testcase.g @@ -1,9 +1,9 @@ -#import tests/meta.g as grammar +#import meta.g as grammar -xws = grammar.ws -ts = ts:: xws! tests xws! -tests = test */ xws -test = tca:: "testcase" "{" input (o::(output +/ xws)) (grammaro::grammar.Grammar) "}" /xws - | tcb:: "testcase" "{" input (grammaro::grammar.Grammar) "}" /xws -output = "output" grammar.Quoted ";" /xws -input = "input" grammar.Quoted ";" /xws +ws = grammar.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" grammar.Quoted ";" /ws +input = "input" grammar.Quoted ";" /ws