File: f006.t

package info (click to toggle)
libdate-calc-xs-perl 6.4-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 812 kB
  • sloc: perl: 7,397; ansic: 2,607; makefile: 2
file content (61 lines) | stat: -rw-r--r-- 2,362 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!perl -w

BEGIN { eval { require bytes; }; }
use strict;
no strict "vars";

use Date::Calc qw( Compressed_to_Text );

# ======================================================================
#   $datestr = Compressed_to_Text($date);
# ======================================================================

print "1..20\n";

$n = 1;
if (Compressed_to_Text(48163) eq "03-Jan-64") {print "ok $n\n";} else {print "not ok $n\n";}
$n++;
if (Compressed_to_Text(    0) eq "??-???-??") {print "ok $n\n";} else {print "not ok $n\n";}
$n++;
if (Compressed_to_Text(13170) eq "18-Nov-95") {print "ok $n\n";} else {print "not ok $n\n";}
$n++;
if (Compressed_to_Text(12892) eq "28-Feb-95") {print "ok $n\n";} else {print "not ok $n\n";}
$n++;
if (Compressed_to_Text(12893) eq "??-???-??") {print "ok $n\n";} else {print "not ok $n\n";}
$n++;

if (Compressed_to_Text(48163,0) eq "03-Jan-64") {print "ok $n\n";} else {print "not ok $n\n";}
$n++;
if (Compressed_to_Text(    0,0) eq "??-???-??") {print "ok $n\n";} else {print "not ok $n\n";}
$n++;
if (Compressed_to_Text(13170,0) eq "18-Nov-95") {print "ok $n\n";} else {print "not ok $n\n";}
$n++;
if (Compressed_to_Text(12892,0) eq "28-Feb-95") {print "ok $n\n";} else {print "not ok $n\n";}
$n++;
if (Compressed_to_Text(12893,0) eq "??-???-??") {print "ok $n\n";} else {print "not ok $n\n";}
$n++;

if (Compressed_to_Text(48163,1) eq "03-Jan-64") {print "ok $n\n";} else {print "not ok $n\n";}
$n++;
if (Compressed_to_Text(    0,1) eq "??-???-??") {print "ok $n\n";} else {print "not ok $n\n";}
$n++;
if (Compressed_to_Text(13170,1) eq "18-Nov-95") {print "ok $n\n";} else {print "not ok $n\n";}
$n++;
if (Compressed_to_Text(12892,1) eq "28-Feb-95") {print "ok $n\n";} else {print "not ok $n\n";}
$n++;
if (Compressed_to_Text(12893,1) eq "??-???-??") {print "ok $n\n";} else {print "not ok $n\n";}
$n++;

if (Compressed_to_Text(48163,11) eq "03-tam-64") {print "ok $n\n";} else {print "not ok $n\n";}
$n++;
if (Compressed_to_Text(    0,11) eq "??-???-??") {print "ok $n\n";} else {print "not ok $n\n";}
$n++;
if (Compressed_to_Text(13170,11) eq "18-mar-95") {print "ok $n\n";} else {print "not ok $n\n";}
$n++;
if (Compressed_to_Text(12892,11) eq "28-hel-95") {print "ok $n\n";} else {print "not ok $n\n";}
$n++;
if (Compressed_to_Text(12893,11) eq "??-???-??") {print "ok $n\n";} else {print "not ok $n\n";}
$n++;

__END__