checkpoint
[sbp.git] / tests / testcase.g
index 280812d..34584c9 100644 (file)
@@ -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 "}" /ws
+           |      ^"testcase" "{" input                Grammar "}" /ws
+           |      ^"tibcase"  "{" input output +/ ws   Grammar "}" /ws
+           |      ^"tibcase"  "{" input                Grammar "}" /ws
+output     =      ^"output" Quoted ";" /ws
+input      =      "input"  Quoted ";" /ws