X-Git-Url: http://git.megacz.com/?p=sbp.git;a=blobdiff_plain;f=tests%2Ftestcase.g;h=2491600ea0eb3e8536accef2298615ea5dec7fc8;hp=cec736caac7ed2e1847d035c04956353a17ffd06;hb=c8d1c3a25e2bfa9645c4b91d3dde9c4857f636f2;hpb=f3b4ef0d81d572694905f4fe284cac6311a29ea4 diff --git a/tests/testcase.g b/tests/testcase.g index cec736c..2491600 100644 --- a/tests/testcase.g +++ b/tests/testcase.g @@ -1,8 +1,9 @@ -#import meta.g +#import meta.g as grammar +ws = grammar.ws 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 +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