X-Git-Url: http://git.megacz.com/?p=sbp.git;a=blobdiff_plain;f=tests%2Ftestcase.g;h=2491600ea0eb3e8536accef2298615ea5dec7fc8;hp=cc6fd20ee041ab0e50c059a560df5c0ca5f651e0;hb=22a2ca7685dcf29e9ddcc6e26443ea0277385fca;hpb=bad286576656a73e315f0aa7b08a1c1714eb8390 diff --git a/tests/testcase.g b/tests/testcase.g index cc6fd20..2491600 100644 --- a/tests/testcase.g +++ b/tests/testcase.g @@ -1,6 +1,9 @@ -ts = ts:: !ws tests !ws +#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