3 .include 'lib/Tapir/Parser.pir'
4 .include 'lib/Tapir/Stream.pir'
7 .include 'test_more.pir'
8 .local pmc tapir, klass
13 klass = newclass [ 'Tapir'; 'Parser' ]
17 test_parse_plan(tapir)
25 $S0 = "1..5\nCauchy Residue Theorem!"
26 num_tests = tapir.'parse_plan'($S0)
27 is(num_tests,5,'parse_plan can parse a simple plan')
29 $S0 = "1..1\nCauchy Residue Theorem!"
30 num_tests = tapir.'parse_plan'($S0)
31 is(num_tests,1,'parse_plan can parse a single test plan')
33 $S0 = "1..0\nCauchy Residue Theorem!"
34 num_tests = tapir.'parse_plan'($S0)
35 is(num_tests,0,'parse_plan can parse a no-test plan')
43 # vim: expandtab shiftwidth=4 ft=pir: