in reply to Re: TAP test question
in thread TAP test question
nested ok(use_ok()) -- results in two testsok 3 - use MyModule::Common;
nested - mistyped ':All' markerok 4 - use MyModule::Common; ok 5 - Can use ':all' to import all subs that MyModule::Common exports
ok(use_ok('ICDP::Common', ':All'),
Another matter would be to test that the list of subs corresponding to the :all label matches some expected values. How do I do that? Well, I think I must re-read the Test::XXX documentation first."All" is not defined in %MyModule::Common::EXPORT_TAGS at /usr/local/s +hare/perl/5.8.8/Test/More.pm line 676 not ok 3 - use MyModule::Common; # Failed test 'use MyModule::Common;' # at .../t/MyModule/Common/Common.t line 23. # Tried to use 'MyModule::Common'. # Error: Can't continue after import errors at (eval 5) line 2 # BEGIN failed--compilation aborted at (eval 5) line 2. not ok 4 - Can use ':all' to import all subs that MyModule::Common exp +orts
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: TAP test question
by moritz (Cardinal) on Jun 04, 2008 at 17:07 UTC | |
by Your Mother (Archbishop) on Jun 04, 2008 at 18:49 UTC |