ok 1 - use Horse;
not ok 2 - Horse->can('talk') # TODO haven't taught Horses to talk yet
# Failed (TODO) test (1.t at line 7)
# Horse->can('talk') failed
ok 3 - I am Mr. Ed!
1..3
Note that the TODO test counts toward the total
number of tests. Also note that the message about why the test is a
TODO test is displayed as a comment. The comment
has a special form, noted by the test harness, so you will see it
during a make test run.
You can have multiple TODO tests in a given block,
but only one reason per block, so it's best to group
things that are related but use different blocks for different
reasons.
 |  |  |
14.3. Writing Tests with Test::More |  | 14.5. More Complex Tests |