The attached patch updates languages/perl6/Test.pm. I realize that with the new testing discussion, this may be useless in the long run, but if anyone is hacking on Rakudo now, they might find it useful.
Features: 1. 'no_plan' is now supported: plan *; 2. Diagnostics: is 2,3; # have: 2 # want: 3 3. Verbose diagnostics (diagnostic output even on passing tests): verbose; # turns diagnostics on verbose(0); # turns diagnostics off 4. Die on fail (halts tests at first failing test): die_on_fail; # die after a test fails die_on_fail(0); # do not die after a test fails Apparently, due to recent changes in Parrot/Rakudo, the only special case I've really needed is this: sub render($value) { return try { $value.isa(any<Iterator>) } ?? $value !! $value.perl; } This pleases me. Next I'd like to create a 'minimal' Test.pm which doesn't need advanced features, but until the new testing discussion is settled, I'm unsure of whether to proceed. Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog - http://use.perl.org/~Ovid/journal/ Twitter - http://twitter.com/OvidPerl Official Perl 6 Wiki - http://www.perlfoundation.org/perl6
Test.pm.patch
Description: Binary data