Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Test-Simple CPAN distribution.

Report information
The Basics
Id: 9204
Status: resolved
Priority: 0/
Queue: Test-Simple

People
Owner: Nobody in particular
Requestors: geektron [...] comradeburnout.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



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 ...