| 1 | #!/usr/bin/perl |
| 2 | |
| 3 | use warningsscip-perl cpan Date-Manip 6.99 warnings/; |
| 4 | use strictscip-perl cpan Date-Manip 6.99 strict/; |
| 5 | use Test::Interscip-perl cpan Date-Manip 6.99 Test/Inter/; |
| 6 | $::tiscip-perl cpan Date-Manip 6.99 main/`$::ti`. = new Test::Inter $0scip-perl cpan Date-Manip 6.99 main/$0.; |
| 7 | requirescip-perl cpan Date-Manip 6.99 main/require(). "tests.pl"; |
| 8 | |
| 9 | our $objscip-perl cpan Date-Manip 6.99 main/$obj. = new Date::Manip::Date; |
| 10 | |
| 11 | sub testscip-perl cpan Date-Manip 6.99 main/test(). { |
| 12 | my($test)=@_scip-perl cpan Date-Manip 6.99 main/`@_`.; |
| 13 | if ($test eq 'date') { |
| 14 | return $objscip-perl cpan Date-Manip 6.99 main/$obj.->is_datescip-perl cpan Date-Manip 6.99 main/is_date().(); |
| 15 | } elsif ($test eq 'delta') { |
| 16 | return $objscip-perl cpan Date-Manip 6.99 main/$obj.->is_deltascip-perl cpan Date-Manip 6.99 main/is_delta().(); |
| 17 | } elsif ($test eq 'recur') { |
| 18 | return $objscip-perl cpan Date-Manip 6.99 main/$obj.->is_recurscip-perl cpan Date-Manip 6.99 main/is_recur().(); |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | my $tests=" |
| 23 | |
| 24 | date => 1 |
| 25 | |
| 26 | delta => 0 |
| 27 | |
| 28 | recur => 0 |
| 29 | |
| 30 | "; |
| 31 | |
| 32 | $::tiscip-perl cpan Date-Manip 6.99 main/`$::ti`.->testsscip-perl cpan Date-Manip 6.99 main/tests().(func => \&testscip-perl cpan Date-Manip 6.99 main/test()., |
| 33 | tests => $tests); |
| 34 | $::tiscip-perl cpan Date-Manip 6.99 main/`$::ti`.->done_testingscip-perl cpan Date-Manip 6.99 main/done_testing().(); |
| 35 | |
| 36 | #Local Variables: |
| 37 | #mode: cperl |
| 38 | #indent-tabs-mode: nil |
| 39 | #cperl-indent-level: 3 |
| 40 | #cperl-continued-statement-offset: 2 |
| 41 | #cperl-continued-brace-offset: 0 |
| 42 | #cperl-brace-offset: 0 |
| 43 | #cperl-brace-imaginary-offset: 0 |
| 44 | #cperl-label-offset: 0 |
| 45 | #End: |