Debian Codegraph @

t/dm5.recur_1.t

raw symbols SCIP
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 'every 7th day in June 1999'
14 0
15 1999061500:00:00
16 1999063000:00:00
17 =>
18 1999062100:00:00
19 1999062800:00:00
20
21 'every 7th day in June 1999'
22 1999061500:00:00
23 1999061500:00:00
24 1999063000:00:00
25 =>
26 1999061500:00:00
27 1999062200:00:00
28 1999062900:00:00
29
30 'every 7th day in June 1999'
31 =>
32 1999060700:00:00
33 1999061400:00:00
34 1999062100:00:00
35 1999062800:00:00
36
37 '4th day of each month in 1999'
38 =>
39 1999010400:00:00
40 1999020400:00:00
41 1999030400:00:00
42 1999040400:00:00
43 1999050400:00:00
44 1999060400:00:00
45 1999070400:00:00
46 1999080400:00:00
47 1999090400:00:00
48 1999100400:00:00
49 1999110400:00:00
50 1999120400:00:00
51
52 '2nd tuesday of every month in 1999'
53 =>
54 1999011200:00:00
55 1999020900:00:00
56 1999030900:00:00
57 1999041300:00:00
58 1999051100:00:00
59 1999060800:00:00
60 1999071300:00:00
61 1999081000:00:00
62 1999091400:00:00
63 1999101200:00:00
64 1999110900:00:00
65 1999121400:00:00
66
67 'every 2nd tuesday in June 1999'
68 =>
69 1999060100:00:00
70 1999061500:00:00
71 1999062900:00:00
72
73 'every 6th tuesday in 1999'
74 =>
75 1999020900:00:00
76 1999032300:00:00
77 1999050400:00:00
78 1999061500:00:00
79 1999072700:00:00
80 1999090700:00:00
81 1999101900:00:00
82 1999113000:00:00
83
84 ";
85
86 $::ti->tests(func => \&ParseRecur,
87 tests => $tests);
88 $::ti->done_testing();
89
90 #Local Variables:
91 #mode: cperl
92 #indent-tabs-mode: nil
93 #cperl-indent-level: 3
94 #cperl-continued-statement-offset: 2
95 #cperl-continued-brace-offset: 0
96 #cperl-brace-offset: 0
97 #cperl-brace-imaginary-offset: 0
98 #cperl-label-offset: 0
99 #End: