Debian Codegraph @

t/dm5.date_today_1.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-dm5.pl";
8
9 Date_Initscip-perl cpan Date-Manip 6.99 main/Date_Init().("TZ=EST");
10 Date_Initscip-perl cpan Date-Manip 6.99 main/Date_Init().("ForceDate=1997-03-08-12:30:00");
11 Date_Initscip-perl cpan Date-Manip 6.99 main/Date_Init().("TodayIsMidnight=0","Internal=0");
12
13 my $tests="
14
15 today => 1997030812:30:00
16
17 now => 1997030812:30:00
18
19 'today at 4:00' => 1997030804:00:00
20
21 'now at 4:00' => 1997030804:00:00
22
23 'today week' => 1997031512:30:00
24
25 'now week' => 1997031512:30:00
26
27 'today week at 4:00' => 1997031504:00:00
28
29 'now week at 4:00' => 1997031504:00:00
30 ";
31
32 $::tiscip-perl cpan Date-Manip 6.99 main/`$::ti`.->testsscip-perl cpan Date-Manip 6.99 main/tests().(func => \&ParseDatescip-perl cpan Date-Manip 6.99 main/ParseDate().,
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: