X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FTest%2FLeaner.pm;h=72531845aac4a400a729807632de6ae37213c3ca;hb=46581a5ea4e511b8e7ab3b6498433e08e4de8cb2;hp=2ada2039793d8fe96e4cf97a9bd6d61298491c6c;hpb=d5f69b6cc4f2193b93768f4a984d854a9dc7f9d4;p=perl%2Fmodules%2FTest-Leaner.git diff --git a/lib/Test/Leaner.pm b/lib/Test/Leaner.pm index 2ada203..7253184 100644 --- a/lib/Test/Leaner.pm +++ b/lib/Test/Leaner.pm @@ -45,6 +45,10 @@ L, L, L, L, L, L, L, L a =item * +C (the sub C in package C) is not aliased to L. + +=item * + L and L don't special case regular expressions that are passed as C<'/.../'> strings. A string regexp argument is always treated as the source of the regexp, making C and C equivalent to each other and to C (and likewise for C). @@ -408,10 +412,10 @@ sub ok ($;$) { ++$test; my $test_str = "ok $test"; - unless ($ok) { + $ok or do { $test_str = "not $test_str"; ++$failed; - } + }; if (defined $desc) { _sanitize_comment($desc); $test_str .= " - $desc" if length $desc; @@ -870,7 +874,7 @@ You can find documentation for this module with the perldoc command. =head1 COPYRIGHT & LICENSE -Copyright 2010 Vincent Pit, all rights reserved. +Copyright 2010,2011 Vincent Pit, all rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.