NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
good plan (Score:1)
You test looks good!
And I really like that line:
plan +@tests;
Simple, obvious! :)
Reply to This
Re: (Score:1)
You test looks good! And I really like that line:
plan +@tests;
Simple, obvious! :)
Thank you. :) I wish I could take more credit for it, though. It's mostly stolen from
Test::Base, which does this:plan tests => 1 * blocks;Perhaps having seen it before made me want to re-invent it in Perl 6.
(Actually, it could be even easier, if I had put the
plancall inside thetestmethod in theTest::InputOutputmodule. That way, the module user wouldn't have had to callplanat all. But doing that felt like a breach of freedom on the part of the module user: what if she wanted to plan more tests