Slash Boxes
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

use Perl Log In

Log In

[ Create a new account ]

Ovid (2709)

  (email not shown publicly)
AOL IM: ovidperl (Add Buddy, Send Message)

Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.

Journal of Ovid (2709)

Monday January 12, 2009
04:17 PM

Perl 6

[ #38268 ]

In writing tests for the .trim function, I kept getting bitten by the fact that does not display any diagnostics. They're currently primitive, but shortly I'll be submitted a patch which shows this:

not ok 28 - 3rd element is trimmed again with no effect # TODO trim on lists
# have: undef
# want: "baz"
not ok 29 - 0 is not true # TODO expected failures
# Expected a true value.
# have: 0
not ok 30 - expected failure # TODO expected failures
# Expected a false value.
# have: ["a", "b", "c"]
not ok 31 -
# have: ["a", "b", "c"]
# want: ["a", "b", "z"]

I've not gone the full YAML/JSON route because diagnostics for TAP are not yet fully specced and I wanted something down now. Also, note that boolean output explains itself much better than it did previously. And because this all goes to STDOUT, there are NO FRICKIN' SYNCHRONIZATION ISSUES that we get with the STDOUT/STDERR mess with Perl 5. This pleases me :)

I hope to have a patch tonight or the day after tomorrow (busy tomorrow).

It also implements 'die_on_fail' but I don't have 'no_plan' due to problems with END blocks not recognizing variables declared outside of their scope.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.