examples/use_ok
raw| 1 | #!/usr/bin/perl |
| 2 | |
| 3 | use strict; |
| 4 | use warnings; |
| 5 | |
| 6 | our($o); |
| 7 | |
| 8 | BEGIN { |
| 9 | print "The first test will fail, all others will be skipped.\n\n"; |
| 10 | use Test::Inter; |
| 11 | $o = new Test::Inter; |
| 12 | } |
| 13 | |
| 14 | BEGIN { $o->use_ok('Xxx::Yyy'); } |
| 15 | |
| 16 | $o->ok(); |
| 17 | $o->ok( 1 == 1 ); |
| 18 | $o->ok( 1 == 2 ); |
| 19 | |
| 20 | $o->done_testing(); |
| 21 |