| 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:2:3:4:5:6:7 |
| 14 |
4 |
| 15 |
'%yv %Mv %wv %dv %hv %mv %sv' |
| 16 |
=> |
| 17 |
'1 2 3 4 5 6 7' |
| 18 |
|
| 19 |
1:2:3:4:5:6:7 |
| 20 |
4 |
| 21 |
'%yd %Md %wd %dd %hd %md %sd' |
| 22 |
=> |
| 23 |
'1.1667 2.0000 3.6018 4.2126 5.1019 6.1167 7.0000' |
| 24 |
|
| 25 |
1:2:3:4:5:6:7 |
| 26 |
0 |
| 27 |
'%yh %Mh %wh %dh %hh %mh %sh' |
| 28 |
=> |
| 29 |
'1 14 3 25 605 36306 2178367' |
| 30 |
|
| 31 |
1:2:3:4:5:6:7 |
| 32 |
4 |
| 33 |
'%yt %Mt %wt %dt %ht %mt %st' |
| 34 |
=> |
| 35 |
'1.1667 14.0000 3.6018 25.2126 605.1019 36306.1167 2178367.0000' |
| 36 |
|
| 37 |
1:2:3:4:5:6:7 |
| 38 |
approx |
| 39 |
4 |
| 40 |
'%yv %Mv %wv %dv %hv %mv %sv' |
| 41 |
=> |
| 42 |
'1 2 3 4 5 6 7' |
| 43 |
|
| 44 |
1:2:3:4:5:6:7 |
| 45 |
approx |
| 46 |
4 |
| 47 |
'%yd %Md %wd %dd %hd %md %sd' |
| 48 |
=> |
| 49 |
'1.2357 2.8283 3.6018 4.2126 5.1019 6.1167 7.0000' |
| 50 |
|
| 51 |
1:2:3:4:5:6:7 |
| 52 |
approx |
| 53 |
4 |
| 54 |
'%yh %Mh %wh %dh %hh %mh %sh' |
| 55 |
=> |
| 56 |
'1 14 63.875 451.125 10832 649926 38995567' |
| 57 |
|
| 58 |
1:2:3:4:5:6:7 |
| 59 |
approx |
| 60 |
4 |
| 61 |
'%yt %Mt %wt %dt %ht %mt %st' |
| 62 |
=> |
| 63 |
'1.2357 14.8283 64.4768 451.3376 10832.1019 649926.1167 38995567.0000' |
| 64 |
|
| 65 |
"; |
| 66 |
|
| 67 |
$::ti->tests(func => \&Delta_Format, |
| 68 |
tests => $tests); |
| 69 |
$::ti->done_testing(); |
| 70 |
|
| 71 |
#Local Variables: |
| 72 |
#mode: cperl |
| 73 |
#indent-tabs-mode: nil |
| 74 |
#cperl-indent-level: 3 |
| 75 |
#cperl-continued-statement-offset: 2 |
| 76 |
#cperl-continued-brace-offset: 0 |
| 77 |
#cperl-brace-offset: 0 |
| 78 |
#cperl-brace-imaginary-offset: 0 |
| 79 |
#cperl-label-offset: 0 |
| 80 |
#End: |