background image
<< new() | What's In A Name >>
<< new() | What's In A Name >>
Names
Names
"ok 2" isn't terribly descriptive.
what if you have 102 tests, what did #64 do?
Each test can be given a little description.
ok( defined $ical, 'new() returned something' );
ok( $ical->isa('Date::ICal'), " and it's the right class" );
This outputs
1..2
ok 1 - new() returned something
ok 2 - and it's the right class