Lines Matching full:should
51 ok 6 - you shall not pass! # TODO should have failed
59 ok $ENV{TAP_VERSION}, 'TAP_VERSION env variable should be set';
64 is scalar @results, 12, '... and there should be one for each line';
68 is $version->version, '13', '... and the version should be 13';
75 is $result->type, 'plan', '... and it should report the correct type';
76 ok $result->is_plan, '... and it should identify itself as a plan';
78 ok !$result->directive, '... and this plan should not have a directive';
82 is $result->raw, '1..7', '... and raw() should return the original line';
88 is $test->type, 'test', '... and it should report the correct type';
89 ok $test->is_test, '... and it should identify itself as a test';
90 is $test->ok, 'ok', '... and it should have the correct ok()';
102 '... and its string representation should be correct';
104 '... and raw() should return the original line';
106 # junk lines should be preserved
110 is $unknown->type, 'unknown', '... and it should report the correct type';
111 ok $unknown->is_unknown, '... and it should identify itself as unknown';
113 '... and its string representation should be returned verbatim';
115 '... and raw() should return the original line';
121 is $failed->type, 'test', '... and it should report the correct type';
122 ok $failed->is_test, '... and it should identify itself as a test';
123 is $failed->ok, 'not ok', '... and it should have the correct ok()';
124 ok $failed->is_ok, '... and TODO tests should always pass';
130 is $failed->directive, 'TODO', '... and should have the correct directive';
137 '... and its string representation should be correct';
139 '... and raw() should return the original line';
145 is $comment->type, 'comment', '... and it should report the correct type';
146 ok $comment->is_comment, '... and it should identify itself as a comment';
148 '... and you should be able to fetch the comment';
152 '... and raw() should return the original line';
158 is $test->type, 'test', '... and it should report the correct type';
159 ok $test->is_test, '... and it should identify itself as a test';
160 is $test->ok, 'ok', '... and it should have the correct ok()';
172 '... and its string representation should be correct';
174 '... and raw() should return the original line';
180 is $failed->type, 'test', '... and it should report the correct type';
181 ok $failed->is_test, '... and it should identify itself as a test';
182 is $failed->ok, 'not ok', '... and it should have the correct ok()';
183 ok !$failed->is_ok, '... and the tests should not have passed';
189 ok !$failed->directive, '... and should have no directive';
194 '... and its string representation should be correct';
196 '... and raw() should return the original line';
201 is $yaml->type, 'yaml', '... and it should report the correct type';
202 ok $yaml->is_yaml, '... and it should identify itself as yaml';
203 is_deeply $yaml->data, 'YAML!', '... and data should be correct';
210 is $test->type, 'test', '... and it should report the correct type';
211 ok $test->is_test, '... and it should identify itself as a test';
212 is $test->ok, 'ok', '... and it should have the correct ok()';
220 '... but we should have an explanation';
224 '... and its string representation should be correct';
226 '... and raw() should return the original line';
229 # ok 6 - you shall not pass! # TODO should have failed
234 is $bonus->type, 'test', 'TODO tests should parse correctly';
235 ok $bonus->is_test, '... and it should identify itself as a test';
236 is $bonus->ok, 'ok', '... and it should have the correct ok()';
237 ok $bonus->is_ok, '... and TODO tests should not always pass';
243 is $bonus->directive, 'TODO', '... and should have the correct directive';
244 is $bonus->explanation, 'should have failed',
248 is $bonus->as_string, 'ok 6 - you shall not pass! # TODO should have failed',
249 '... and its string representation should be correct';
250 is $bonus->raw, 'ok 6 - you shall not pass! # TODO should have failed',
251 '... and raw() should return the original line';
253 '... todo_bonus() should pass for TODO tests which unexpectedly succeed';
260 is $passed->type, 'test', 'TODO tests should parse correctly';
261 ok $passed->is_test, '... and it should identify itself as a test';
262 is $passed->ok, 'not ok', '... and it should have the correct ok()';
263 ok $passed->is_ok, '... and TODO tests should always pass';
269 is $passed->directive, 'TODO', '... and should have the correct directive';
276 '... and its string representation should be correct';
278 '... and raw() should return the original line';
280 '... todo_passed() should not pass for TODO tests which failed';
286 '... and we should have the correct number of passed tests';
296 '... and we should have the correct number of actually passed tests';
308 '... and we should have the correct number of TODO tests';
314 '... and we should have the correct number of skipped tests';
321 is $parser->plan, '1..7', '... and we should have the correct plan';
327 '... and it should report the number of tests which unexpectedly succeeded';
349 isa_ok $parser, $PARSER, '... and calling it should succeed';
353 ok @results = _get_results($parser), 'The parser should return results';
354 is scalar @results, 5, '... and there should be one for each line';
361 is $result->type, 'plan', '... and it should report the correct type';
362 ok $result->is_plan, '... and it should identify itself as a plan';
366 is $result->raw, '1..2', '... and raw() should return the original line';
372 is $test->type, 'test', '... and it should report the correct type';
373 ok $test->is_test, '... and it should identify itself as a test';
374 is $test->ok, 'ok', '... and it should have the correct ok()';
386 '... and its string representation should be correct';
388 '... and raw() should return the original line';
390 # junk lines should be preserved
394 is $unknown->type, 'unknown', '... and it should report the correct type';
395 ok $unknown->is_unknown, '... and it should identify itself as unknown';
397 '... and its string representation should be returned verbatim';
398 is $unknown->raw, '', '... and raw() should return the original line';
404 is $unknown->type, 'unknown', '... and it should report the correct type';
405 ok $unknown->is_unknown, '... and it should identify itself as unknown';
407 '... and its string representation should be returned verbatim';
408 is $unknown->raw, '', '... and raw() should return the original line';
414 is $test->type, 'test', '... and it should report the correct type';
415 ok $test->is_test, '... and it should identify itself as a test';
416 is $test->ok, 'ok', '... and it should have the correct ok()';
428 '... and its string representation should be correct';
430 '... and raw() should return the original line';
433 'Empty junk lines should not affect the correct number of tests passed';
438 isa_ok $parser, $PARSER, '... and calling it should succeed';
439 ok @results = _get_results($parser), 'The parser should return results';
445 isa_ok $parser, $PARSER, '... and calling it should succeed';
446 ok @results = _get_results($parser), 'The parser should return results';
453 isa_ok $parser, $PARSER, '... and calling it should succeed';
454 ok @results = _get_results($parser), 'The parser should return results';
474 ok 6 - you shall not pass! # TODO should have failed
566 ok 6 - you shall not pass! # TODO should have failed
847 # now call next on the parser, and the grammar should die
883 # now call next on the parser, and the grammar should die