Bunch of little changes since 0.32. If people could pound on 0.36 a
bit so I know it's firm, I'll sync it into bleadperl. Hopefully this
will be the last version before 5.8.
Here are the two most earthshattering changes:
* is() considers undef and '' different beasties.
# This now fails
is(undef, '');
# This now passes
isnt(undef, '');
I didn't realize those passed, so I guess it was a bug. Now these
useful idioms work:
# ok( defined $foo );
isnt($foo, undef);
# ok( !defined $foo );
is( $foo, undef );
* You can muck with STDOUT and STDERR and not break the test output.
This always worked, but it was an accidental feature. I realized that
when 0.32 broke it and things started going haywire. So it's official
now. You can do this:
use Test::More tests => 1;
close STDOUT;
pass("We don't need no stinkin' STDOUT");
0.36 Thu Nov 29 14:07:39 EST 2001
- Matthias Urlichs found that intermixed prints to STDOUT and test
output came out in the wrong order when piped.
0.35 Tue Nov 27 19:57:03 EST 2001
- Little glitch in the test suite. No actual bug.
0.34 Tue Nov 27 15:43:56 EST 2001
* Empty string no longer matches undef in is() and isnt().
* Added isnt_eq and isnt_num to Test::Builder.
0.33 Mon Oct 22 21:05:47 EDT 2001
* It's now officially safe to redirect STDOUT and STDERR without
affecting test output.
- License and POD cleanup by Autrijus Tang
- Synched up Test::Tutorial with the wiki version
- Minor VMS test nit.
0.32 Tue Oct 16 16:52:02 EDT 2001
* Finally added a seperate plan() function
* Adding a name field to isa_ok()
(Requested by Dave Rolsky)
- Test::More was using Carp.pm, causing the occasional false positive.
(Reported by Tatsuhiko Miyagawa)
--
Michael G. Schwern <[EMAIL PROTECTED]> http://www.pobox.com/~schwern/
Perl Quality Assurance <[EMAIL PROTECTED]> Kwalitee Is Job One
Milk is timeless.