]> git.vpit.fr Git - perl/modules/Test-Leaner.git/blobdiff - lib/Test/Leaner.pm
Document that isn't() is not aliased to isnt()
[perl/modules/Test-Leaner.git] / lib / Test / Leaner.pm
index 2ada2039793d8fe96e4cf97a9bd6d61298491c6c..72531845aac4a400a729807632de6ae37213c3ca 100644 (file)
@@ -45,6 +45,10 @@ L</pass>, L</fail>, L</ok>, L</is>, L</isnt>, L</like>, L</unlike>, L</cmp_ok> a
 
 =item *
 
+C<isn't> (the sub C<t> in package C<isn>) is not aliased to L</isnt>.
+
+=item *
+
 L</like> and L</unlike> 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<like $text, $rx> and C<like $text, qr[$rx]> equivalent to each other and to C<cmp_ok $text, '=~', $rx> (and likewise for C<unlike>).
 
@@ -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.