Lines Matching full:and
57 isa_ok $parser, $PARSER, '... and the object it returns';
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';
77 is $result->plan, '1..7', '... and identify the plan';
78 ok !$result->directive, '... and this plan should not have a directive';
81 '... and have the correct string representation';
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()';
91 ok $test->is_ok, '... and the correct boolean version of is_ok()';
93 '... and the correct boolean version of is_actual_ok()';
94 is $test->number, 1, '... and have the correct test number';
96 '... and the correct description';
97 ok !$test->directive, '... and not have a directive';
99 ok !$test->has_skip, '... and it is not a SKIPped test';
102 '... and its string representation should be correct';
104 '... and raw() should return the original line';
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';
126 '... and the correct boolean version of is_actual_ok ()';
127 is $failed->number, 2, '... and have the correct failed number';
129 '... and the correct description';
130 is $failed->directive, 'TODO', '... and should have the correct directive';
132 '... and the correct directive explanation';
133 ok !$failed->has_skip, '... and it is not a SKIPped failed';
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';
150 '... and have the correct string representation';
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()';
161 ok $test->is_ok, '... and the correct boolean version of is_ok()';
163 '... and the correct boolean version of is_actual_ok()';
164 is $test->number, 3, '... and have the correct test number';
166 '... and the correct description';
167 ok !$test->directive, '... and not have a directive';
169 ok !$test->has_skip, '... and it is not a SKIPped test';
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';
185 '... and the correct boolean version of is_actual_ok ()';
186 is $failed->number, 4, '... and have the correct failed number';
188 '... and the correct description';
189 ok !$failed->directive, '... and should have no directive';
190 ok !$failed->explanation, '... and no directive explanation';
191 ok !$failed->has_skip, '... and it is not a SKIPped failed';
192 ok !$failed->has_todo, '... and not a TODO test';
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()';
213 ok $test->is_ok, '... and the correct boolean version of is_ok()';
215 '... and the correct boolean version of is_actual_ok()';
216 is $test->number, 5, '... and have the correct test number';
217 ok !$test->description, '... and skipped tests have no description';
218 is $test->directive, 'SKIP', '... and the correct directive';
221 ok $test->has_skip, '... and it is a SKIPped test';
224 '... and its string representation should be correct';
226 '... and raw() should return the original line';
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';
239 '... and the correct boolean version of is_actual_ok ()';
240 is $bonus->number, 6, '... and have the correct failed number';
242 '... and the correct description';
243 is $bonus->directive, 'TODO', '... and should have the correct directive';
245 '... and the correct directive explanation';
246 ok !$bonus->has_skip, '... and it is not a SKIPped failed';
249 '... and its string representation should be correct';
251 '... and raw() should return the original line';
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';
265 '... and the correct boolean version of is_actual_ok ()';
266 is $passed->number, 7, '... and have the correct passed number';
268 '... and the correct description';
269 is $passed->directive, 'TODO', '... and should have the correct directive';
271 '... and the correct directive explanation';
272 ok !$passed->has_skip, '... and it is not a SKIPped passed';
276 '... and its string representation should be correct';
278 '... and raw() should return the original line';
286 '... and we should have the correct number of passed tests';
288 '... and get a list of the passed tests';
291 is $parser->failed, 1, '... and the correct number of failed tests';
292 is_deeply [ $parser->failed ], [4], '... and get a list of the failed tests';
296 '... and we should have the correct number of actually passed tests';
298 '... and get a list of the actually passed tests';
302 '... and the correct number of actually failed tests';
308 '... and we should have the correct number of TODO tests';
310 '... and get a list of the TODO tests';
314 '... and we should have the correct number of skipped tests';
316 '... and get a list of the skipped tests';
321 is $parser->plan, '1..7', '... and we should have the correct plan';
322 is $parser->tests_planned, 7, '... and the correct number of tests';
327 '... and it should report the number of tests which unexpectedly succeeded';
349 isa_ok $parser, $PARSER, '... and calling it should succeed';
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';
363 is $result->plan, '1..2', '... and identify the plan';
365 '... and have the correct string representation';
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()';
375 ok $test->is_ok, '... and the correct boolean version of is_ok()';
377 '... and the correct boolean version of is_actual_ok()';
378 is $test->number, 1, '... and have the correct test number';
380 '... and the correct description';
381 ok !$test->directive, '... and not have a directive';
383 ok !$test->has_skip, '... and it is not a SKIPped test';
386 '... and its string representation should be correct';
388 '... and raw() should return the original line';
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';
400 # ... and the second empty 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()';
417 ok $test->is_ok, '... and the correct boolean version of is_ok()';
419 '... and the correct boolean version of is_actual_ok()';
420 is $test->number, 2, '... and have the correct test number';
422 '... and the correct description';
423 ok !$test->directive, '... and not have a directive';
425 ok !$test->has_skip, '... and it is not a SKIPped test';
428 '... and its string representation should be correct';
430 '... and raw() should return the original line';
438 isa_ok $parser, $PARSER, '... and calling it should succeed';
445 isa_ok $parser, $PARSER, '... and calling it should succeed';
453 isa_ok $parser, $PARSER, '... and calling it should succeed';
528 '...and it failed as expected';
547 '...and it failed as expected';
586 '..and failed as expected'
618 '... and we died as expected';
651 # currently covered are no problems and failed, so let's next test
666 ok $parser->todo_passed, '... and todo_passed is true';
668 ok !$parser->has_problems, '... and has_problems is false';
683 ok !$parser->todo_passed, '... and todo_passed is false';
684 ok $parser->parse_errors, '... and parse_errors is true';
686 ok $parser->has_problems, '... and has_problems';
688 # Now wait and exit are hard to do in an OS platform-independent way, so
705 ok !$parser->todo_passed, '... and todo_passed is false';
706 ok !$parser->parse_errors, '... and parse_errors is false';
708 ok $parser->wait, '... and wait is set';
710 ok $parser->has_problems, '... and has_problems';
712 # and use the same for exit
718 ok !$parser->todo_passed, '... and todo_passed is false';
719 ok !$parser->parse_errors, '... and parse_errors is false';
720 ok !$parser->wait, '... and wait is not set';
722 ok $parser->exit, '... and exit is set';
724 ok $parser->has_problems, '... and has_problems';
748 '... and trapped expected version error';
768 '... and trapped expected version error';
792 '... and trapped expected version error';
847 # now call next on the parser, and the grammar should die
853 is @errors, 2, '...and caught expected errrors';
856 '...and it was what we expected';
883 # now call next on the parser, and the grammar should die
889 is @errors, 2, '...and caught expected errrors';
892 '...and it was what we expected';
930 '...and the message is as we expect';
964 like pop @die, qr/Can't use/, '...and the message is as we expect';
995 qr/Panic: planned test count [(]1001[)] did not equal sum of passed [(]0[)] and failed [(]2[)] tests!/,
996 '...and the message is as we expect';