Debian Codegraph @

t/tz.convert_from_gmt.t

raw symbols SCIP
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::TZ;
10 $objscip-perl cpan Date-Manip 6.99 main/$obj.->configscip-perl cpan Date-Manip 6.99 main/config().("forcedate","now,America/New_York");
11
12 sub testscip-perl cpan Date-Manip 6.99 main/test(). {
13 my (@test)=@_scip-perl cpan Date-Manip 6.99 main/`@_`.;
14 return $objscip-perl cpan Date-Manip 6.99 main/$obj.->convert_from_gmtscip-perl cpan Date-Manip 6.99 main/convert_from_gmt().(@test);
15 }
16
17 my $tests="
18 [ 1985 1 1 17 0 0 ] America/New_York =>
19 0 [ 1985 1 1 12 0 0 ] [ -5 0 0 ] 0 EST
20
21 [ 1985 4 28 7 0 0 ] America/New_York =>
22 0 [ 1985 4 28 3 0 0 ] [ -4 0 0 ] 1 EDT
23
24 [ 1985 10 27 6 0 0 ] America/New_York =>
25 0 [ 1985 10 27 1 0 0 ] [ -5 0 0 ] 0 EST
26
27 [ 1985 10 27 5 0 0 ] America/New_York =>
28 0 [ 1985 10 27 1 0 0 ] [ -4 0 0 ] 1 EDT
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: