[go: up one dir, main page]

File: f005.t

package info (click to toggle)
libdate-calc-perl 6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,512 kB
  • ctags: 386
  • sloc: perl: 13,835; ansic: 3,080; sh: 14; makefile: 7
file content (27 lines) | stat: -rw-r--r-- 765 bytes parent folder | download | duplicates (9)
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
#!perl -w

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

use Date::Calc qw( check_compressed );

# ======================================================================
#   $flag = check_compressed($date);
# ======================================================================

print "1..5\n";

$n = 1;
if (check_compressed(48163) == 1) {print "ok $n\n";} else {print "not ok $n\n";}
$n++;
if (check_compressed(    0) == 0) {print "ok $n\n";} else {print "not ok $n\n";}
$n++;
if (check_compressed(13170) == 1) {print "ok $n\n";} else {print "not ok $n\n";}
$n++;
if (check_compressed(12892) == 1) {print "ok $n\n";} else {print "not ok $n\n";}
$n++;
if (check_compressed(12893) == 0) {print "ok $n\n";} else {print "not ok $n\n";}

__END__