in reply to Re^2: starting to write automated tests
in thread starting to write automated tests

Try changing the 'and' to a &&. 'and' has a lower precedence than ',' - that's what's causing the problem.

Being right, does not endow the right to be rude; politeness costs nothing.
Being unknowing, is not the same as being stupid.
Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.

Replies are listed 'Best First'.
Re^4: starting to write automated tests
by geektron (Curate) on Dec 28, 2004 at 17:47 UTC
    guess it's time for a documentation patch!

    from the perldoc:

    EXAMPLE Here's an example of a simple .t file for the fictional Film mo +dule. 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 }); ok( defined($btaste) and ref $btaste eq 'Film', 'new() works' );