| 1 |
#!/usr/bin/perl |
| 2 |
|
| 3 |
use warnings; |
| 4 |
use strict; |
| 5 |
use Test::Inter; |
| 6 |
$::ti = new Test::Inter $0; |
| 7 |
require "tests-dm5.pl"; |
| 8 |
|
| 9 |
Date_Init("TZ=EST"); |
| 10 |
|
| 11 |
my $tests=" |
| 12 |
|
| 13 |
1:1:1:1 2:2:2:2 0 => +0:0:0:3:3:3:3 |
| 14 |
|
| 15 |
1:1:1:1 2:-1:1:1 0 => +0:0:0:3:0:0:0 |
| 16 |
|
| 17 |
1:1:1:1 0:-11:5:6 0 => +0:0:0:0:13:55:55 |
| 18 |
|
| 19 |
1:1:1:1 0:-25:5:6 0 => -0:0:0:0:0:4:5 |
| 20 |
|
| 21 |
1:1:0:1:1:1:1 2:12:1:2:48:120:120 0 => +4:1:1:5:3:3:1 |
| 22 |
|
| 23 |
1:1:0:1:1:1:1 2:12:0:-2:48:120:120 0 => +4:1:-0:3:1:0:59 |
| 24 |
|
| 25 |
"; |
| 26 |
|
| 27 |
$::ti->tests(func => \&DateCalc, |
| 28 |
tests => $tests); |
| 29 |
$::ti->done_testing(); |
| 30 |
|
| 31 |
#Local Variables: |
| 32 |
#mode: cperl |
| 33 |
#indent-tabs-mode: nil |
| 34 |
#cperl-indent-level: 3 |
| 35 |
#cperl-continued-statement-offset: 2 |
| 36 |
#cperl-continued-brace-offset: 0 |
| 37 |
#cperl-brace-offset: 0 |
| 38 |
#cperl-brace-imaginary-offset: 0 |
| 39 |
#cperl-label-offset: 0 |
| 40 |
#End: |