Subject: | documentation fix |
I did find one problem with the POD in Test::Simple
Line 119
=head1 EXAMPLE
Here's an example of a simple .t file for the fictional Film module.
use Test::Simple tests => 5;
use Film; # What you're testing.
my $btaste = Film->new({ Title => 'Bad Taste',
Director => 'Peter Jackson',
Rating => 'R',
NumExplodingSheep => 1
});
<<<<< Here is the issue:
ok( defined($btaste) and ref $btaste eq 'Film', 'new() works' );
Show quoted text
>>>>>>>
should be:
ok( defined($btaste) && ref $btaste eq 'Film', 'new() works' );
Show quoted text>>>>>>>>>>>>>
it was pointed out that 'and' has higher precedence than the comma, so the test doesn't fail, but also doesn't produce the ok output ...