lexer: Reimplement for better testability and internationalization.
[pspp-builds.git] / tests / data / data-in.at
1 AT_BANNER([data input (data-in)])
2
3 m4_divert_push([PREPARE_TESTS])
4 [data_in_prng () {
5   cat > my-rand.pl <<'EOF'
6 # This random number generator and the test for it below are drawn
7 # from Park and Miller, "Random Number Generators: Good Ones are Hard
8 # to Come By", Communications of the ACM 31:10 (October 1988).  It is
9 # documented to function properly on systems with a 46-bit or longer
10 # real significand, which includes systems that have 64-bit IEEE reals
11 # (with 53-bit significand).  The test should catch any systems for
12 # which this is not true, in any case.
13
14 our ($seed) = 1;
15 sub my_rand {
16   my ($modulo) = @_;
17   my ($a) = 16807;
18   my ($m) = 2147483647;
19   my ($tmp) = $a * $seed;
20   $seed = $tmp - $m * int ($tmp / $m);
21   return $seed % $modulo;
22 }
23 EOF
24   cat > test-my-rand.pl <<'EOF'
25 #! /usr/bin/perl
26 use strict;
27 use warnings;
28 do 'my-rand.pl';
29 my_rand (1) foreach 1...10000;
30 our $seed;
31 die $seed if $seed != 1043618065;
32 EOF
33 }
34 date_in () {
35   data_in_prng
36   cat > date-in.pl << 'EOF'
37 #! /usr/bin/perl
38
39 use strict;
40 use warnings;
41
42 do 'my-rand.pl';
43
44 my ($fmt_name, @templates) = @ARGV;
45
46 my @dates = (#yyyy  mm  dd  jjj  HH  MM  SS
47              [1648,  6, 10, 162,  0,  0,  0],
48              [1680,  6, 30, 182,  4, 50, 38],
49              [1716,  7, 24, 206, 12, 31, 35],
50              [1768,  6, 19, 171, 12, 47, 53],
51              [1819,  8,  2, 214,  1, 26,  0],
52              [1839,  3, 27,  86, 20, 58, 11],
53              [1903,  4, 19, 109,  7, 36,  5],
54              [1929,  8, 25, 237, 15, 43, 49],
55              [1941,  9, 29, 272,  4, 25,  9],
56              [1943,  4, 19, 109,  6, 49, 27],
57              [1943, 10,  7, 280,  2, 57, 52],
58              [1992,  3, 17,  77, 16, 45, 44],
59              [1996,  2, 25,  56, 21, 30, 57],
60              [1941,  9, 29, 272,  4, 25,  9],
61              [1943,  4, 19, 109,  6, 49, 27],
62              [1943, 10,  7, 280,  2, 57, 52],
63              [1992,  3, 17,  77, 16, 45, 44],
64              [1996,  2, 25,  56, 21, 30, 57],
65              [2038, 11, 10, 314, 22, 30,  4],
66              [2094,  7, 18, 199,  1, 56, 51]);
67
68 open (SYNTAX, '>', "$fmt_name.sps") or die "$fmt_name.sps: create: $!\n";
69 print SYNTAX "SET EPOCH 1930.\n";
70 print SYNTAX "DATA LIST NOTABLE FILE='$fmt_name.in'/$fmt_name 1-40 ($fmt_name).\n";
71 print SYNTAX "PRINT OUTFILE='$fmt_name.out'/$fmt_name (F16.2).\n";
72 print SYNTAX "EXECUTE.\n";
73 close (SYNTAX);
74
75 my ($fn) = "$fmt_name.in";
76 open (DATA, '>', $fn) or die "$fn: create: $!\n";
77 select DATA;
78 for my $template (@templates) {
79     for my $date (@dates) {
80         print_date_with_template ($date, $template) for 1...10;
81     }
82 }
83 close (DATA);
84
85 sub print_date_with_template {
86     my ($date, $template) = @_;
87     my ($year, $month, $day, $julian, $hour, $minute, $second) = @$date;
88     my ($quarter) = int (($month - 1) / 3) + 1;
89     my ($week) = int (($julian - 1) / 7) + 1;
90     my (@year_types) = ('full');
91     push (@year_types, '2digit') if $year >= 1930 && $year < 2030;
92     for my $c (split ('', $template)) {
93         if ($c eq 'd') {
94             printf (+pick ('%d', '%02d'), $day);
95         } elsif ($c eq 'm') {
96             my ($type) = pick ('arabic', 'roman', 'abbrev', 'full');
97             if ($type eq 'arabic') {
98                 printf (+pick ('%d', '%02d'), $month);
99             } elsif ($type eq 'roman') {
100                 my ($mmm) = ('i', 'ii', 'iii',
101                              'iv', 'v', 'vi',
102                              'vii', 'viii', 'ix',
103                              'x', 'xi', 'xii')[$month - 1];
104                 print_rand_case ($mmm);
105             } elsif ($type eq 'abbrev') {
106                 my ($mmm) = qw (jan feb mar apr may jun
107                                 jul aug sep oct nov dec)[$month - 1];
108                 print_rand_case ($mmm);
109             } elsif ($type eq 'full') {
110                 my ($mmm) = qw (january february march
111                                 april may june
112                                 july august september
113                                 october november december)[$month - 1];
114                 print_rand_case ($mmm);
115             } else {
116                 die;
117             }
118         } elsif ($c eq 'y') {
119             my ($type) = pick (@year_types);
120             if ($type eq '2digit') {
121                 printf (+pick ('%d', '%02d'), $year % 100);
122             } elsif ($type eq 'full') {
123                 print $year;
124             } else {
125                 die;
126             }
127         } elsif ($c eq 'j') {
128             my ($type) = pick (@year_types);
129             if ($type eq '2digit') {
130                 printf ("%02d%03d", $year % 100, $julian);
131             } elsif ($type eq 'full') {
132                 printf ("%04d%03d", $year, $julian);
133             } else {
134                 die;
135             }
136         } elsif ($c eq 'q') {
137             print $quarter;
138         } elsif ($c eq 'w') {
139             print $week;
140         } elsif ($c eq 'H') {
141             printf (+pick ('%d', '%02d'), $hour);
142         } elsif ($c eq 'M') {
143             printf (+pick ('%d', '%02d'), $minute);
144         } elsif ($c eq 'S') {
145             printf (+pick ('%d', '%02d'), $second);
146         } elsif ($c eq '-') {
147             print +pick (' ', '-', '.', ',', '/');
148         } elsif ($c eq ':') {
149             print +pick (' ', ':');
150         } elsif ($c eq ' ') {
151             print ' ';
152         } elsif ($c eq 'Q') {
153             maybe_print_space ();
154             print_rand_case ('q');
155             maybe_print_space ();
156         } elsif ($c eq 'W') {
157             maybe_print_space ();
158             print_rand_case ('wk');
159             maybe_print_space ();
160         } elsif ($c eq '+') {
161             print +pick ('', '-', '+');
162         } else {
163             die;
164         }
165     }
166     print "\n";
167 }
168
169 sub print_rand_case {
170     my ($s) = @_;
171     my ($case) = pick (qw (uc lc tc));
172     if ($case eq 'uc') {
173         print uc ($s);
174     } elsif ($case eq 'lc') {
175         print lc ($s);
176     } elsif ($case eq 'tc') {
177         print ucfirst ($s);
178     } else {
179         die;
180     }
181 }
182
183 sub maybe_print_space {
184    print +pick ('', ' ');
185 }
186
187 sub pick {
188    return $_[int (my_rand ($#_
189                            + 1))];
190 }
191 EOF
192 }
193 time_in () {
194   data_in_prng
195   cat > time-in.pl << 'EOF'
196 #! /usr/bin/perl
197
198 use strict;
199 use warnings;
200
201 do 'my-rand.pl';
202
203 my ($skip, $fmt_name, @templates) = @ARGV;
204
205 my_rand (1) foreach 1...$skip;
206
207 my @times = (#  D  HH  MM     SS
208              [  0,  0,  0,  0.00],
209              [  1,  4, 50, 38.68],
210              [  5, 12, 31, 35.82],
211              [  0, 12, 47, 53.41],
212              [  3,  1, 26,  0.69],
213              [  1, 20, 58, 11.19],
214              [ 12,  7, 36,  5.98],
215              [ 52, 15, 43, 49.27],
216              [  7,  4, 25,  9.24],
217              [  0,  6, 49, 27.89],
218              [ 20,  2, 57, 52.56],
219              [555, 16, 45, 44.12],
220              [120, 21, 30, 57.27],
221              [  0,  4, 25,  9.98],
222              [  3,  6, 49, 27.24],
223              [  5,  2, 57, 52.13],
224              [  0, 16, 45, 44.35],
225              [  1, 21, 30, 57.32],
226              [ 10, 22, 30,  4.27],
227              [ 22,  1, 56, 51.18]);
228
229 open (SYNTAX, '>', "$fmt_name.sps") or die "$fmt_name.sps: create: $!\n";
230 print SYNTAX "DATA LIST NOTABLE FILE='$fmt_name.data'/$fmt_name 1-40 ($fmt_name).\n";
231 print SYNTAX "PRINT OUTFILE='$fmt_name.out'/$fmt_name (F16.2).\n";
232 print SYNTAX "EXECUTE.\n";
233 close (SYNTAX);
234
235 my ($fn) = "$fmt_name.data";
236 open (DATA, '>', $fn) or die "$fn: create: $!\n";
237 select DATA;
238 for my $template (@templates) {
239     for my $time (@times) {
240         print_time_with_template ($time, $template) for 1...10;
241     }
242 }
243 close (DATA);
244
245 sub print_time_with_template {
246     my ($time, $template) = @_;
247     my ($day, $hour, $minute, $second) = @$time;
248     for my $c (split ('', $template)) {
249         if ($c eq '+') {
250             print +pick ('', '-', '+');
251         } elsif ($c eq 'D') {
252             printf (+pick ('%d', '%02d'), $day);
253             $day = 0;
254         } elsif ($c eq 'H') {
255             printf (+pick ('%d', '%02d'), $hour + 24 * $day);
256         } elsif ($c eq 'M') {
257             printf (+pick ('%d', '%02d'), $minute);
258         } elsif ($c eq 'S') {
259             printf (+pick ('%.0f', '%02.0f', '%.1f', '%.2f'), $second);
260         } elsif ($c eq ':') {
261             print +pick (' ', ':');
262         } elsif ($c eq ' ') {
263             print ' ';
264         } else {
265             die;
266         }
267     }
268     print "\n";
269 }
270
271 sub pick {
272    return $_[int (my_rand ($#_ 
273                            + 1)) ];
274 }
275 EOF
276 }]
277 m4_divert_pop([PREPARE_TESTS])
278
279 AT_SETUP([numeric input formats])
280 AT_KEYWORDS([data-in])
281 data_in_prng
282 AT_CHECK([$PERL test-my-rand.pl])
283 AT_DATA([num-in.pl],
284 [[#! /usr/bin/perl
285
286 use POSIX;
287 use strict;
288 use warnings;
289
290 do 'my-rand.pl';
291
292 for my $number (0, 1, .5, .015625, 123) {
293     my ($base_exp) = floor ($number ? log10 ($number) : 0);
294     for my $offset (-3...3) {
295         my ($exponent) = $base_exp + $offset;
296         my ($fraction) = $number / 10**$offset;
297
298         permute_zeros ($fraction, $exponent);
299     }
300 }
301
302 sub permute_zeros {
303     my ($fraction, $exponent) = @_;
304
305     my ($frac_rep) = sprintf ("%f", $fraction);
306     my ($leading_zeros) = length (($frac_rep =~ /^(0*)/)[0]);
307     my ($trailing_zeros) = length (($frac_rep =~ /(\.?0*)$/)[0]);
308     for my $i (0...$leading_zeros) {
309         for my $j (0...$trailing_zeros) {
310             my ($trimmed) = substr ($frac_rep, $i,
311                                     length ($frac_rep) - $i - $j);
312             next if $trimmed eq '.' || $trimmed eq '';
313
314             permute_commas ($trimmed, $exponent);
315         }
316     }
317 }
318
319 sub permute_commas {
320     my ($frac_rep, $exponent) = @_;
321     permute_dot_comma ($frac_rep, $exponent);
322     my ($pos) = int (my_rand (length ($frac_rep) + 1));
323     $frac_rep = substr ($frac_rep, 0, $pos) . "," . substr ($frac_rep, $pos);
324     permute_dot_comma ($frac_rep, $exponent);
325 }
326
327 sub permute_dot_comma {
328     my ($frac_rep, $exponent) = @_;
329     permute_exponent_syntax ($frac_rep, $exponent);
330     if ($frac_rep =~ /[,.]/) {
331         $frac_rep =~ tr/.,/,./;
332         permute_exponent_syntax ($frac_rep, $exponent);
333     }
334 }
335
336 sub permute_exponent_syntax {
337     my ($frac_rep, $exponent) = @_;
338     my (@exp_reps);
339     if ($exponent == 0) {
340         @exp_reps = pick ('', 'e0', 'e-0', 'e+0', '-0', '+0');
341     } elsif ($exponent > 0) {
342         @exp_reps = pick ("e$exponent", "e+$exponent", "+$exponent");
343     } else {
344         my ($abs_exp) = -$exponent;
345         @exp_reps = pick ("e-$abs_exp", , "e-$abs_exp", "-$abs_exp");
346     }
347     permute_sign_and_affix ($frac_rep, $_) foreach @exp_reps;
348 }
349
350 sub permute_sign_and_affix {
351     my ($frac_rep, $exp_rep) = @_;
352     for my $prefix (pick ('', '$'),
353                     pick ('-', '-$', '$-', '$-$'),
354                     pick ('+', '+$', '$+', '$+$')) {
355         for my $suffix ('', '%') {
356             permute_spaces ("$prefix$frac_rep$exp_rep$suffix");
357         }
358     }
359 }
360
361 sub permute_spaces {
362     my ($s) = @_;
363     $s =~ s/([-+\$e%])/ $1 /g;
364     my (@fields) = split (' ', $s);
365     print join ('', @fields), "\n";
366
367     if ($#fields > 0) {
368         my ($pos) = int (my_rand ($#fields)) + 1;
369         print join ('', @fields[0...$pos - 1]);
370         print " ";
371         print join ('', @fields[$pos...$#fields]);
372         print "\n";
373     }
374 }
375
376 sub pick {
377     return $_[int (my_rand ($#_ + 1))];
378 }
379 ]])
380 AT_CHECK([$PERL num-in.pl > num-in.data])
381 AT_DATA([num-in.sps], [dnl
382 SET ERRORS=NONE.
383 SET MXERRS=10000000.
384 SET MXWARNS=10000000.
385 DATA LIST FILE='num-in.data' NOTABLE/
386         f 1-40 (f)
387         comma 1-40 (comma)
388         dot 1-40 (dot)
389         dollar 1-40 (dollar)
390         pct 1-40 (pct)
391         e 1-40 (e).
392 PRINT OUTFILE='num-in.out'/all (6f10.4).
393 EXECUTE.
394 ])
395 AT_CHECK([pspp -O format=csv num-in.sps])
396 AT_CHECK([gzip -cd < $top_srcdir/tests/data/num-in.expected.gz > expout])
397 AT_CHECK([cat num-in.out], [0], [expout])
398 AT_CLEANUP
399
400 dnl Some very old version of PSPP crashed reading big numbers,
401 dnl so this checks for regressions.
402 AT_SETUP([reading big numbers])
403 AT_KEYWORDS([data-in])
404 AT_DATA([bignum.txt], [dnl
405 0
406 0.1
407 0.5
408 0.8
409 0.9
410 0.999
411 1
412 2
413 3
414 4
415 5
416 12
417 123
418 1234
419 12345
420 123456
421 1234567
422 12345678
423 123456789
424 1234567890
425 19999999999
426 199999999999
427 1234567890123
428 19999999999999
429 199999999999999
430 1234567890123456
431 19999999999999999
432 123456789012345678
433 1999999999999999999
434 12345678901234567890
435 199999999999999999999
436 1234567890123456789012
437 19999999999999999999999
438 123456789012345678901234
439 1999999999999999999999999
440 12345678901234567890123456
441 199999999999999999999999999
442 1234567890123456789012345678
443 19999999999999999999999999999
444 123456789012345678901234567890
445 1999999999999999999999999999999
446 12345678901234567890123456789012
447 199999999999999999999999999999999
448 1234567890123456789012345678901234
449 19999999999999999999999999999999999
450 123456789012345678901234567890123456
451 1999999999999999999999999999999999999
452 12345678901234567890123456789012345678
453 199999999999999999999999999999999999999
454 1234567890123456789012345678901234567890
455 1999999999999999999999999999999999999999
456 1e40
457 1.1e40
458 1.5e40
459 1e41
460 1e50
461 1e100
462 1e150
463 1e200
464 1e250
465 1e300
466 1.79641e308
467 wizzah
468 ])
469 AT_DATA([bignum.sps], [dnl
470 title 'Test use of big numbers'.
471
472 *** Do the portable output.
473 data list file='bignum.txt'/BIGNUM 1-40.
474 list.
475
476 *** Do the nonportable output for fun. 
477 descriptives BIGNUM.
478 ])
479 AT_CHECK([pspp -o pspp.csv bignum.sps], [0], [ignore])
480 AT_CLEANUP
481
482 AT_SETUP([DATE input format])
483 AT_KEYWORDS([data-in])
484 date_in
485 AT_CHECK([$PERL test-my-rand.pl])
486 AT_CHECK([$PERL date-in.pl date d-m-y])
487 AT_CHECK([test -s date.sps])
488 AT_CHECK([test -s date.in])
489 AT_CHECK([pspp -O format=csv date.sps])
490 AT_CHECK([cat date.out], [0], [dnl
491     2071958400.00
492     2071958400.00
493     2071958400.00
494     2071958400.00
495     2071958400.00
496     2071958400.00
497     2071958400.00
498     2071958400.00
499     2071958400.00
500     2071958400.00
501     3083529600.00
502     3083529600.00
503     3083529600.00
504     3083529600.00
505     3083529600.00
506     3083529600.00
507     3083529600.00
508     3083529600.00
509     3083529600.00
510     3083529600.00
511     4221590400.00
512     4221590400.00
513     4221590400.00
514     4221590400.00
515     4221590400.00
516     4221590400.00
517     4221590400.00
518     4221590400.00
519     4221590400.00
520     4221590400.00
521     5859561600.00
522     5859561600.00
523     5859561600.00
524     5859561600.00
525     5859561600.00
526     5859561600.00
527     5859561600.00
528     5859561600.00
529     5859561600.00
530     5859561600.00
531     7472649600.00
532     7472649600.00
533     7472649600.00
534     7472649600.00
535     7472649600.00
536     7472649600.00
537     7472649600.00
538     7472649600.00
539     7472649600.00
540     7472649600.00
541     8092742400.00
542     8092742400.00
543     8092742400.00
544     8092742400.00
545     8092742400.00
546     8092742400.00
547     8092742400.00
548     8092742400.00
549     8092742400.00
550     8092742400.00
551    10114329600.00
552    10114329600.00
553    10114329600.00
554    10114329600.00
555    10114329600.00
556    10114329600.00
557    10114329600.00
558    10114329600.00
559    10114329600.00
560    10114329600.00
561    10945929600.00
562    10945929600.00
563    10945929600.00
564    10945929600.00
565    10945929600.00
566    10945929600.00
567    10945929600.00
568    10945929600.00
569    10945929600.00
570    10945929600.00
571    11327644800.00
572    11327644800.00
573    11327644800.00
574    11327644800.00
575    11327644800.00
576    11327644800.00
577    11327644800.00
578    11327644800.00
579    11327644800.00
580    11327644800.00
581    11376633600.00
582    11376633600.00
583    11376633600.00
584    11376633600.00
585    11376633600.00
586    11376633600.00
587    11376633600.00
588    11376633600.00
589    11376633600.00
590    11376633600.00
591    11391408000.00
592    11391408000.00
593    11391408000.00
594    11391408000.00
595    11391408000.00
596    11391408000.00
597    11391408000.00
598    11391408000.00
599    11391408000.00
600    11391408000.00
601    12920169600.00
602    12920169600.00
603    12920169600.00
604    12920169600.00
605    12920169600.00
606    12920169600.00
607    12920169600.00
608    12920169600.00
609    12920169600.00
610    12920169600.00
611    13044585600.00
612    13044585600.00
613    13044585600.00
614    13044585600.00
615    13044585600.00
616    13044585600.00
617    13044585600.00
618    13044585600.00
619    13044585600.00
620    13044585600.00
621    11327644800.00
622    11327644800.00
623    11327644800.00
624    11327644800.00
625    11327644800.00
626    11327644800.00
627    11327644800.00
628    11327644800.00
629    11327644800.00
630    11327644800.00
631    11376633600.00
632    11376633600.00
633    11376633600.00
634    11376633600.00
635    11376633600.00
636    11376633600.00
637    11376633600.00
638    11376633600.00
639    11376633600.00
640    11376633600.00
641    11391408000.00
642    11391408000.00
643    11391408000.00
644    11391408000.00
645    11391408000.00
646    11391408000.00
647    11391408000.00
648    11391408000.00
649    11391408000.00
650    11391408000.00
651    12920169600.00
652    12920169600.00
653    12920169600.00
654    12920169600.00
655    12920169600.00
656    12920169600.00
657    12920169600.00
658    12920169600.00
659    12920169600.00
660    12920169600.00
661    13044585600.00
662    13044585600.00
663    13044585600.00
664    13044585600.00
665    13044585600.00
666    13044585600.00
667    13044585600.00
668    13044585600.00
669    13044585600.00
670    13044585600.00
671    14392339200.00
672    14392339200.00
673    14392339200.00
674    14392339200.00
675    14392339200.00
676    14392339200.00
677    14392339200.00
678    14392339200.00
679    14392339200.00
680    14392339200.00
681    16149628800.00
682    16149628800.00
683    16149628800.00
684    16149628800.00
685    16149628800.00
686    16149628800.00
687    16149628800.00
688    16149628800.00
689    16149628800.00
690    16149628800.00
691 ])
692 AT_CLEANUP
693
694 AT_SETUP([ADATE input format])
695 AT_KEYWORDS([data-in])
696 date_in
697 AT_CHECK([$PERL test-my-rand.pl])
698 AT_CHECK([$PERL date-in.pl adate m-d-y])
699 AT_CHECK([test -s adate.sps])
700 AT_CHECK([test -s adate.in])
701 AT_CHECK([pspp -O format=csv adate.sps])
702 AT_CHECK([cat adate.out], [0], [dnl
703     2071958400.00
704     2071958400.00
705     2071958400.00
706     2071958400.00
707     2071958400.00
708     2071958400.00
709     2071958400.00
710     2071958400.00
711     2071958400.00
712     2071958400.00
713     3083529600.00
714     3083529600.00
715     3083529600.00
716     3083529600.00
717     3083529600.00
718     3083529600.00
719     3083529600.00
720     3083529600.00
721     3083529600.00
722     3083529600.00
723     4221590400.00
724     4221590400.00
725     4221590400.00
726     4221590400.00
727     4221590400.00
728     4221590400.00
729     4221590400.00
730     4221590400.00
731     4221590400.00
732     4221590400.00
733     5859561600.00
734     5859561600.00
735     5859561600.00
736     5859561600.00
737     5859561600.00
738     5859561600.00
739     5859561600.00
740     5859561600.00
741     5859561600.00
742     5859561600.00
743     7472649600.00
744     7472649600.00
745     7472649600.00
746     7472649600.00
747     7472649600.00
748     7472649600.00
749     7472649600.00
750     7472649600.00
751     7472649600.00
752     7472649600.00
753     8092742400.00
754     8092742400.00
755     8092742400.00
756     8092742400.00
757     8092742400.00
758     8092742400.00
759     8092742400.00
760     8092742400.00
761     8092742400.00
762     8092742400.00
763    10114329600.00
764    10114329600.00
765    10114329600.00
766    10114329600.00
767    10114329600.00
768    10114329600.00
769    10114329600.00
770    10114329600.00
771    10114329600.00
772    10114329600.00
773    10945929600.00
774    10945929600.00
775    10945929600.00
776    10945929600.00
777    10945929600.00
778    10945929600.00
779    10945929600.00
780    10945929600.00
781    10945929600.00
782    10945929600.00
783    11327644800.00
784    11327644800.00
785    11327644800.00
786    11327644800.00
787    11327644800.00
788    11327644800.00
789    11327644800.00
790    11327644800.00
791    11327644800.00
792    11327644800.00
793    11376633600.00
794    11376633600.00
795    11376633600.00
796    11376633600.00
797    11376633600.00
798    11376633600.00
799    11376633600.00
800    11376633600.00
801    11376633600.00
802    11376633600.00
803    11391408000.00
804    11391408000.00
805    11391408000.00
806    11391408000.00
807    11391408000.00
808    11391408000.00
809    11391408000.00
810    11391408000.00
811    11391408000.00
812    11391408000.00
813    12920169600.00
814    12920169600.00
815    12920169600.00
816    12920169600.00
817    12920169600.00
818    12920169600.00
819    12920169600.00
820    12920169600.00
821    12920169600.00
822    12920169600.00
823    13044585600.00
824    13044585600.00
825    13044585600.00
826    13044585600.00
827    13044585600.00
828    13044585600.00
829    13044585600.00
830    13044585600.00
831    13044585600.00
832    13044585600.00
833    11327644800.00
834    11327644800.00
835    11327644800.00
836    11327644800.00
837    11327644800.00
838    11327644800.00
839    11327644800.00
840    11327644800.00
841    11327644800.00
842    11327644800.00
843    11376633600.00
844    11376633600.00
845    11376633600.00
846    11376633600.00
847    11376633600.00
848    11376633600.00
849    11376633600.00
850    11376633600.00
851    11376633600.00
852    11376633600.00
853    11391408000.00
854    11391408000.00
855    11391408000.00
856    11391408000.00
857    11391408000.00
858    11391408000.00
859    11391408000.00
860    11391408000.00
861    11391408000.00
862    11391408000.00
863    12920169600.00
864    12920169600.00
865    12920169600.00
866    12920169600.00
867    12920169600.00
868    12920169600.00
869    12920169600.00
870    12920169600.00
871    12920169600.00
872    12920169600.00
873    13044585600.00
874    13044585600.00
875    13044585600.00
876    13044585600.00
877    13044585600.00
878    13044585600.00
879    13044585600.00
880    13044585600.00
881    13044585600.00
882    13044585600.00
883    14392339200.00
884    14392339200.00
885    14392339200.00
886    14392339200.00
887    14392339200.00
888    14392339200.00
889    14392339200.00
890    14392339200.00
891    14392339200.00
892    14392339200.00
893    16149628800.00
894    16149628800.00
895    16149628800.00
896    16149628800.00
897    16149628800.00
898    16149628800.00
899    16149628800.00
900    16149628800.00
901    16149628800.00
902    16149628800.00
903 ])
904 AT_CLEANUP
905
906 AT_SETUP([EDATE input format])
907 AT_KEYWORDS([data-in])
908 date_in
909 AT_CHECK([$PERL test-my-rand.pl])
910 AT_CHECK([$PERL date-in.pl edate d-m-y])
911 AT_CHECK([test -s edate.sps])
912 AT_CHECK([test -s edate.in])
913 AT_CHECK([pspp -O format=csv edate.sps])
914 AT_CHECK([cat edate.out], [0], [dnl
915     2071958400.00
916     2071958400.00
917     2071958400.00
918     2071958400.00
919     2071958400.00
920     2071958400.00
921     2071958400.00
922     2071958400.00
923     2071958400.00
924     2071958400.00
925     3083529600.00
926     3083529600.00
927     3083529600.00
928     3083529600.00
929     3083529600.00
930     3083529600.00
931     3083529600.00
932     3083529600.00
933     3083529600.00
934     3083529600.00
935     4221590400.00
936     4221590400.00
937     4221590400.00
938     4221590400.00
939     4221590400.00
940     4221590400.00
941     4221590400.00
942     4221590400.00
943     4221590400.00
944     4221590400.00
945     5859561600.00
946     5859561600.00
947     5859561600.00
948     5859561600.00
949     5859561600.00
950     5859561600.00
951     5859561600.00
952     5859561600.00
953     5859561600.00
954     5859561600.00
955     7472649600.00
956     7472649600.00
957     7472649600.00
958     7472649600.00
959     7472649600.00
960     7472649600.00
961     7472649600.00
962     7472649600.00
963     7472649600.00
964     7472649600.00
965     8092742400.00
966     8092742400.00
967     8092742400.00
968     8092742400.00
969     8092742400.00
970     8092742400.00
971     8092742400.00
972     8092742400.00
973     8092742400.00
974     8092742400.00
975    10114329600.00
976    10114329600.00
977    10114329600.00
978    10114329600.00
979    10114329600.00
980    10114329600.00
981    10114329600.00
982    10114329600.00
983    10114329600.00
984    10114329600.00
985    10945929600.00
986    10945929600.00
987    10945929600.00
988    10945929600.00
989    10945929600.00
990    10945929600.00
991    10945929600.00
992    10945929600.00
993    10945929600.00
994    10945929600.00
995    11327644800.00
996    11327644800.00
997    11327644800.00
998    11327644800.00
999    11327644800.00
1000    11327644800.00
1001    11327644800.00
1002    11327644800.00
1003    11327644800.00
1004    11327644800.00
1005    11376633600.00
1006    11376633600.00
1007    11376633600.00
1008    11376633600.00
1009    11376633600.00
1010    11376633600.00
1011    11376633600.00
1012    11376633600.00
1013    11376633600.00
1014    11376633600.00
1015    11391408000.00
1016    11391408000.00
1017    11391408000.00
1018    11391408000.00
1019    11391408000.00
1020    11391408000.00
1021    11391408000.00
1022    11391408000.00
1023    11391408000.00
1024    11391408000.00
1025    12920169600.00
1026    12920169600.00
1027    12920169600.00
1028    12920169600.00
1029    12920169600.00
1030    12920169600.00
1031    12920169600.00
1032    12920169600.00
1033    12920169600.00
1034    12920169600.00
1035    13044585600.00
1036    13044585600.00
1037    13044585600.00
1038    13044585600.00
1039    13044585600.00
1040    13044585600.00
1041    13044585600.00
1042    13044585600.00
1043    13044585600.00
1044    13044585600.00
1045    11327644800.00
1046    11327644800.00
1047    11327644800.00
1048    11327644800.00
1049    11327644800.00
1050    11327644800.00
1051    11327644800.00
1052    11327644800.00
1053    11327644800.00
1054    11327644800.00
1055    11376633600.00
1056    11376633600.00
1057    11376633600.00
1058    11376633600.00
1059    11376633600.00
1060    11376633600.00
1061    11376633600.00
1062    11376633600.00
1063    11376633600.00
1064    11376633600.00
1065    11391408000.00
1066    11391408000.00
1067    11391408000.00
1068    11391408000.00
1069    11391408000.00
1070    11391408000.00
1071    11391408000.00
1072    11391408000.00
1073    11391408000.00
1074    11391408000.00
1075    12920169600.00
1076    12920169600.00
1077    12920169600.00
1078    12920169600.00
1079    12920169600.00
1080    12920169600.00
1081    12920169600.00
1082    12920169600.00
1083    12920169600.00
1084    12920169600.00
1085    13044585600.00
1086    13044585600.00
1087    13044585600.00
1088    13044585600.00
1089    13044585600.00
1090    13044585600.00
1091    13044585600.00
1092    13044585600.00
1093    13044585600.00
1094    13044585600.00
1095    14392339200.00
1096    14392339200.00
1097    14392339200.00
1098    14392339200.00
1099    14392339200.00
1100    14392339200.00
1101    14392339200.00
1102    14392339200.00
1103    14392339200.00
1104    14392339200.00
1105    16149628800.00
1106    16149628800.00
1107    16149628800.00
1108    16149628800.00
1109    16149628800.00
1110    16149628800.00
1111    16149628800.00
1112    16149628800.00
1113    16149628800.00
1114    16149628800.00
1115 ])
1116 AT_CLEANUP
1117
1118 AT_SETUP([JDATE input format])
1119 AT_KEYWORDS([data-in])
1120 date_in
1121 AT_CHECK([$PERL test-my-rand.pl])
1122 AT_CHECK([$PERL date-in.pl jdate j])
1123 AT_CHECK([test -s jdate.sps])
1124 AT_CHECK([test -s jdate.in])
1125 AT_CHECK([pspp -O format=csv jdate.sps])
1126 AT_CHECK([cat jdate.out], [0], [dnl
1127     2071958400.00
1128     2071958400.00
1129     2071958400.00
1130     2071958400.00
1131     2071958400.00
1132     2071958400.00
1133     2071958400.00
1134     2071958400.00
1135     2071958400.00
1136     2071958400.00
1137     3083529600.00
1138     3083529600.00
1139     3083529600.00
1140     3083529600.00
1141     3083529600.00
1142     3083529600.00
1143     3083529600.00
1144     3083529600.00
1145     3083529600.00
1146     3083529600.00
1147     4221590400.00
1148     4221590400.00
1149     4221590400.00
1150     4221590400.00
1151     4221590400.00
1152     4221590400.00
1153     4221590400.00
1154     4221590400.00
1155     4221590400.00
1156     4221590400.00
1157     5859561600.00
1158     5859561600.00
1159     5859561600.00
1160     5859561600.00
1161     5859561600.00
1162     5859561600.00
1163     5859561600.00
1164     5859561600.00
1165     5859561600.00
1166     5859561600.00
1167     7472649600.00
1168     7472649600.00
1169     7472649600.00
1170     7472649600.00
1171     7472649600.00
1172     7472649600.00
1173     7472649600.00
1174     7472649600.00
1175     7472649600.00
1176     7472649600.00
1177     8092742400.00
1178     8092742400.00
1179     8092742400.00
1180     8092742400.00
1181     8092742400.00
1182     8092742400.00
1183     8092742400.00
1184     8092742400.00
1185     8092742400.00
1186     8092742400.00
1187    10114329600.00
1188    10114329600.00
1189    10114329600.00
1190    10114329600.00
1191    10114329600.00
1192    10114329600.00
1193    10114329600.00
1194    10114329600.00
1195    10114329600.00
1196    10114329600.00
1197    10945929600.00
1198    10945929600.00
1199    10945929600.00
1200    10945929600.00
1201    10945929600.00
1202    10945929600.00
1203    10945929600.00
1204    10945929600.00
1205    10945929600.00
1206    10945929600.00
1207    11327644800.00
1208    11327644800.00
1209    11327644800.00
1210    11327644800.00
1211    11327644800.00
1212    11327644800.00
1213    11327644800.00
1214    11327644800.00
1215    11327644800.00
1216    11327644800.00
1217    11376633600.00
1218    11376633600.00
1219    11376633600.00
1220    11376633600.00
1221    11376633600.00
1222    11376633600.00
1223    11376633600.00
1224    11376633600.00
1225    11376633600.00
1226    11376633600.00
1227    11391408000.00
1228    11391408000.00
1229    11391408000.00
1230    11391408000.00
1231    11391408000.00
1232    11391408000.00
1233    11391408000.00
1234    11391408000.00
1235    11391408000.00
1236    11391408000.00
1237    12920169600.00
1238    12920169600.00
1239    12920169600.00
1240    12920169600.00
1241    12920169600.00
1242    12920169600.00
1243    12920169600.00
1244    12920169600.00
1245    12920169600.00
1246    12920169600.00
1247    13044585600.00
1248    13044585600.00
1249    13044585600.00
1250    13044585600.00
1251    13044585600.00
1252    13044585600.00
1253    13044585600.00
1254    13044585600.00
1255    13044585600.00
1256    13044585600.00
1257    11327644800.00
1258    11327644800.00
1259    11327644800.00
1260    11327644800.00
1261    11327644800.00
1262    11327644800.00
1263    11327644800.00
1264    11327644800.00
1265    11327644800.00
1266    11327644800.00
1267    11376633600.00
1268    11376633600.00
1269    11376633600.00
1270    11376633600.00
1271    11376633600.00
1272    11376633600.00
1273    11376633600.00
1274    11376633600.00
1275    11376633600.00
1276    11376633600.00
1277    11391408000.00
1278    11391408000.00
1279    11391408000.00
1280    11391408000.00
1281    11391408000.00
1282    11391408000.00
1283    11391408000.00
1284    11391408000.00
1285    11391408000.00
1286    11391408000.00
1287    12920169600.00
1288    12920169600.00
1289    12920169600.00
1290    12920169600.00
1291    12920169600.00
1292    12920169600.00
1293    12920169600.00
1294    12920169600.00
1295    12920169600.00
1296    12920169600.00
1297    13044585600.00
1298    13044585600.00
1299    13044585600.00
1300    13044585600.00
1301    13044585600.00
1302    13044585600.00
1303    13044585600.00
1304    13044585600.00
1305    13044585600.00
1306    13044585600.00
1307    14392339200.00
1308    14392339200.00
1309    14392339200.00
1310    14392339200.00
1311    14392339200.00
1312    14392339200.00
1313    14392339200.00
1314    14392339200.00
1315    14392339200.00
1316    14392339200.00
1317    16149628800.00
1318    16149628800.00
1319    16149628800.00
1320    16149628800.00
1321    16149628800.00
1322    16149628800.00
1323    16149628800.00
1324    16149628800.00
1325    16149628800.00
1326    16149628800.00
1327 ])
1328 AT_CLEANUP
1329
1330 AT_SETUP([SDATE input format])
1331 AT_KEYWORDS([data-in])
1332 date_in
1333 AT_CHECK([$PERL test-my-rand.pl])
1334 AT_CHECK([$PERL date-in.pl sdate y-m-d])
1335 AT_CHECK([test -s sdate.sps])
1336 AT_CHECK([test -s sdate.in])
1337 AT_CHECK([pspp -O format=csv sdate.sps])
1338 AT_CHECK([cat sdate.out], [0], [dnl
1339     2071958400.00
1340     2071958400.00
1341     2071958400.00
1342     2071958400.00
1343     2071958400.00
1344     2071958400.00
1345     2071958400.00
1346     2071958400.00
1347     2071958400.00
1348     2071958400.00
1349     3083529600.00
1350     3083529600.00
1351     3083529600.00
1352     3083529600.00
1353     3083529600.00
1354     3083529600.00
1355     3083529600.00
1356     3083529600.00
1357     3083529600.00
1358     3083529600.00
1359     4221590400.00
1360     4221590400.00
1361     4221590400.00
1362     4221590400.00
1363     4221590400.00
1364     4221590400.00
1365     4221590400.00
1366     4221590400.00
1367     4221590400.00
1368     4221590400.00
1369     5859561600.00
1370     5859561600.00
1371     5859561600.00
1372     5859561600.00
1373     5859561600.00
1374     5859561600.00
1375     5859561600.00
1376     5859561600.00
1377     5859561600.00
1378     5859561600.00
1379     7472649600.00
1380     7472649600.00
1381     7472649600.00
1382     7472649600.00
1383     7472649600.00
1384     7472649600.00
1385     7472649600.00
1386     7472649600.00
1387     7472649600.00
1388     7472649600.00
1389     8092742400.00
1390     8092742400.00
1391     8092742400.00
1392     8092742400.00
1393     8092742400.00
1394     8092742400.00
1395     8092742400.00
1396     8092742400.00
1397     8092742400.00
1398     8092742400.00
1399    10114329600.00
1400    10114329600.00
1401    10114329600.00
1402    10114329600.00
1403    10114329600.00
1404    10114329600.00
1405    10114329600.00
1406    10114329600.00
1407    10114329600.00
1408    10114329600.00
1409    10945929600.00
1410    10945929600.00
1411    10945929600.00
1412    10945929600.00
1413    10945929600.00
1414    10945929600.00
1415    10945929600.00
1416    10945929600.00
1417    10945929600.00
1418    10945929600.00
1419    11327644800.00
1420    11327644800.00
1421    11327644800.00
1422    11327644800.00
1423    11327644800.00
1424    11327644800.00
1425    11327644800.00
1426    11327644800.00
1427    11327644800.00
1428    11327644800.00
1429    11376633600.00
1430    11376633600.00
1431    11376633600.00
1432    11376633600.00
1433    11376633600.00
1434    11376633600.00
1435    11376633600.00
1436    11376633600.00
1437    11376633600.00
1438    11376633600.00
1439    11391408000.00
1440    11391408000.00
1441    11391408000.00
1442    11391408000.00
1443    11391408000.00
1444    11391408000.00
1445    11391408000.00
1446    11391408000.00
1447    11391408000.00
1448    11391408000.00
1449    12920169600.00
1450    12920169600.00
1451    12920169600.00
1452    12920169600.00
1453    12920169600.00
1454    12920169600.00
1455    12920169600.00
1456    12920169600.00
1457    12920169600.00
1458    12920169600.00
1459    13044585600.00
1460    13044585600.00
1461    13044585600.00
1462    13044585600.00
1463    13044585600.00
1464    13044585600.00
1465    13044585600.00
1466    13044585600.00
1467    13044585600.00
1468    13044585600.00
1469    11327644800.00
1470    11327644800.00
1471    11327644800.00
1472    11327644800.00
1473    11327644800.00
1474    11327644800.00
1475    11327644800.00
1476    11327644800.00
1477    11327644800.00
1478    11327644800.00
1479    11376633600.00
1480    11376633600.00
1481    11376633600.00
1482    11376633600.00
1483    11376633600.00
1484    11376633600.00
1485    11376633600.00
1486    11376633600.00
1487    11376633600.00
1488    11376633600.00
1489    11391408000.00
1490    11391408000.00
1491    11391408000.00
1492    11391408000.00
1493    11391408000.00
1494    11391408000.00
1495    11391408000.00
1496    11391408000.00
1497    11391408000.00
1498    11391408000.00
1499    12920169600.00
1500    12920169600.00
1501    12920169600.00
1502    12920169600.00
1503    12920169600.00
1504    12920169600.00
1505    12920169600.00
1506    12920169600.00
1507    12920169600.00
1508    12920169600.00
1509    13044585600.00
1510    13044585600.00
1511    13044585600.00
1512    13044585600.00
1513    13044585600.00
1514    13044585600.00
1515    13044585600.00
1516    13044585600.00
1517    13044585600.00
1518    13044585600.00
1519    14392339200.00
1520    14392339200.00
1521    14392339200.00
1522    14392339200.00
1523    14392339200.00
1524    14392339200.00
1525    14392339200.00
1526    14392339200.00
1527    14392339200.00
1528    14392339200.00
1529    16149628800.00
1530    16149628800.00
1531    16149628800.00
1532    16149628800.00
1533    16149628800.00
1534    16149628800.00
1535    16149628800.00
1536    16149628800.00
1537    16149628800.00
1538    16149628800.00
1539 ])
1540 AT_CLEANUP
1541
1542 AT_SETUP([QYR input format])
1543 AT_KEYWORDS([data-in])
1544 date_in
1545 AT_CHECK([$PERL test-my-rand.pl])
1546 AT_CHECK([$PERL date-in.pl qyr qQy])
1547 AT_CHECK([test -s qyr.sps])
1548 AT_CHECK([test -s qyr.in])
1549 AT_CHECK([pspp -O format=csv qyr.sps])
1550 AT_CHECK([cat qyr.out], [0], [dnl
1551     2065910400.00
1552     2065910400.00
1553     2065910400.00
1554     2065910400.00
1555     2065910400.00
1556     2065910400.00
1557     2065910400.00
1558     2065910400.00
1559     2065910400.00
1560     2065910400.00
1561     3075753600.00
1562     3075753600.00
1563     3075753600.00
1564     3075753600.00
1565     3075753600.00
1566     3075753600.00
1567     3075753600.00
1568     3075753600.00
1569     3075753600.00
1570     3075753600.00
1571     4219603200.00
1572     4219603200.00
1573     4219603200.00
1574     4219603200.00
1575     4219603200.00
1576     4219603200.00
1577     4219603200.00
1578     4219603200.00
1579     4219603200.00
1580     4219603200.00
1581     5852736000.00
1582     5852736000.00
1583     5852736000.00
1584     5852736000.00
1585     5852736000.00
1586     5852736000.00
1587     5852736000.00
1588     5852736000.00
1589     5852736000.00
1590     5852736000.00
1591     7469884800.00
1592     7469884800.00
1593     7469884800.00
1594     7469884800.00
1595     7469884800.00
1596     7469884800.00
1597     7469884800.00
1598     7469884800.00
1599     7469884800.00
1600     7469884800.00
1601     8085398400.00
1602     8085398400.00
1603     8085398400.00
1604     8085398400.00
1605     8085398400.00
1606     8085398400.00
1607     8085398400.00
1608     8085398400.00
1609     8085398400.00
1610     8085398400.00
1611    10112774400.00
1612    10112774400.00
1613    10112774400.00
1614    10112774400.00
1615    10112774400.00
1616    10112774400.00
1617    10112774400.00
1618    10112774400.00
1619    10112774400.00
1620    10112774400.00
1621    10941177600.00
1622    10941177600.00
1623    10941177600.00
1624    10941177600.00
1625    10941177600.00
1626    10941177600.00
1627    10941177600.00
1628    10941177600.00
1629    10941177600.00
1630    10941177600.00
1631    11319868800.00
1632    11319868800.00
1633    11319868800.00
1634    11319868800.00
1635    11319868800.00
1636    11319868800.00
1637    11319868800.00
1638    11319868800.00
1639    11319868800.00
1640    11319868800.00
1641    11375078400.00
1642    11375078400.00
1643    11375078400.00
1644    11375078400.00
1645    11375078400.00
1646    11375078400.00
1647    11375078400.00
1648    11375078400.00
1649    11375078400.00
1650    11375078400.00
1651    11390889600.00
1652    11390889600.00
1653    11390889600.00
1654    11390889600.00
1655    11390889600.00
1656    11390889600.00
1657    11390889600.00
1658    11390889600.00
1659    11390889600.00
1660    11390889600.00
1661    12913603200.00
1662    12913603200.00
1663    12913603200.00
1664    12913603200.00
1665    12913603200.00
1666    12913603200.00
1667    12913603200.00
1668    12913603200.00
1669    12913603200.00
1670    12913603200.00
1671    13039833600.00
1672    13039833600.00
1673    13039833600.00
1674    13039833600.00
1675    13039833600.00
1676    13039833600.00
1677    13039833600.00
1678    13039833600.00
1679    13039833600.00
1680    13039833600.00
1681    11319868800.00
1682    11319868800.00
1683    11319868800.00
1684    11319868800.00
1685    11319868800.00
1686    11319868800.00
1687    11319868800.00
1688    11319868800.00
1689    11319868800.00
1690    11319868800.00
1691    11375078400.00
1692    11375078400.00
1693    11375078400.00
1694    11375078400.00
1695    11375078400.00
1696    11375078400.00
1697    11375078400.00
1698    11375078400.00
1699    11375078400.00
1700    11375078400.00
1701    11390889600.00
1702    11390889600.00
1703    11390889600.00
1704    11390889600.00
1705    11390889600.00
1706    11390889600.00
1707    11390889600.00
1708    11390889600.00
1709    11390889600.00
1710    11390889600.00
1711    12913603200.00
1712    12913603200.00
1713    12913603200.00
1714    12913603200.00
1715    12913603200.00
1716    12913603200.00
1717    12913603200.00
1718    12913603200.00
1719    12913603200.00
1720    12913603200.00
1721    13039833600.00
1722    13039833600.00
1723    13039833600.00
1724    13039833600.00
1725    13039833600.00
1726    13039833600.00
1727    13039833600.00
1728    13039833600.00
1729    13039833600.00
1730    13039833600.00
1731    14388883200.00
1732    14388883200.00
1733    14388883200.00
1734    14388883200.00
1735    14388883200.00
1736    14388883200.00
1737    14388883200.00
1738    14388883200.00
1739    14388883200.00
1740    14388883200.00
1741    16148160000.00
1742    16148160000.00
1743    16148160000.00
1744    16148160000.00
1745    16148160000.00
1746    16148160000.00
1747    16148160000.00
1748    16148160000.00
1749    16148160000.00
1750    16148160000.00
1751 ])
1752 AT_CLEANUP
1753
1754 AT_SETUP([MOYR input format])
1755 AT_KEYWORDS([data-in])
1756 date_in
1757 AT_CHECK([$PERL test-my-rand.pl])
1758 AT_CHECK([$PERL date-in.pl moyr m-y])
1759 AT_CHECK([test -s moyr.sps])
1760 AT_CHECK([test -s moyr.in])
1761 AT_CHECK([pspp -O format=csv moyr.sps])
1762 AT_CHECK([cat moyr.out], [0], [dnl
1763     2071180800.00
1764     2071180800.00
1765     2071180800.00
1766     2071180800.00
1767     2071180800.00
1768     2071180800.00
1769     2071180800.00
1770     2071180800.00
1771     2071180800.00
1772     2071180800.00
1773     3081024000.00
1774     3081024000.00
1775     3081024000.00
1776     3081024000.00
1777     3081024000.00
1778     3081024000.00
1779     3081024000.00
1780     3081024000.00
1781     3081024000.00
1782     3081024000.00
1783     4219603200.00
1784     4219603200.00
1785     4219603200.00
1786     4219603200.00
1787     4219603200.00
1788     4219603200.00
1789     4219603200.00
1790     4219603200.00
1791     4219603200.00
1792     4219603200.00
1793     5858006400.00
1794     5858006400.00
1795     5858006400.00
1796     5858006400.00
1797     5858006400.00
1798     5858006400.00
1799     5858006400.00
1800     5858006400.00
1801     5858006400.00
1802     5858006400.00
1803     7472563200.00
1804     7472563200.00
1805     7472563200.00
1806     7472563200.00
1807     7472563200.00
1808     7472563200.00
1809     7472563200.00
1810     7472563200.00
1811     7472563200.00
1812     7472563200.00
1813     8090496000.00
1814     8090496000.00
1815     8090496000.00
1816     8090496000.00
1817     8090496000.00
1818     8090496000.00
1819     8090496000.00
1820     8090496000.00
1821     8090496000.00
1822     8090496000.00
1823    10112774400.00
1824    10112774400.00
1825    10112774400.00
1826    10112774400.00
1827    10112774400.00
1828    10112774400.00
1829    10112774400.00
1830    10112774400.00
1831    10112774400.00
1832    10112774400.00
1833    10943856000.00
1834    10943856000.00
1835    10943856000.00
1836    10943856000.00
1837    10943856000.00
1838    10943856000.00
1839    10943856000.00
1840    10943856000.00
1841    10943856000.00
1842    10943856000.00
1843    11325225600.00
1844    11325225600.00
1845    11325225600.00
1846    11325225600.00
1847    11325225600.00
1848    11325225600.00
1849    11325225600.00
1850    11325225600.00
1851    11325225600.00
1852    11325225600.00
1853    11375078400.00
1854    11375078400.00
1855    11375078400.00
1856    11375078400.00
1857    11375078400.00
1858    11375078400.00
1859    11375078400.00
1860    11375078400.00
1861    11375078400.00
1862    11375078400.00
1863    11390889600.00
1864    11390889600.00
1865    11390889600.00
1866    11390889600.00
1867    11390889600.00
1868    11390889600.00
1869    11390889600.00
1870    11390889600.00
1871    11390889600.00
1872    11390889600.00
1873    12918787200.00
1874    12918787200.00
1875    12918787200.00
1876    12918787200.00
1877    12918787200.00
1878    12918787200.00
1879    12918787200.00
1880    12918787200.00
1881    12918787200.00
1882    12918787200.00
1883    13042512000.00
1884    13042512000.00
1885    13042512000.00
1886    13042512000.00
1887    13042512000.00
1888    13042512000.00
1889    13042512000.00
1890    13042512000.00
1891    13042512000.00
1892    13042512000.00
1893    11325225600.00
1894    11325225600.00
1895    11325225600.00
1896    11325225600.00
1897    11325225600.00
1898    11325225600.00
1899    11325225600.00
1900    11325225600.00
1901    11325225600.00
1902    11325225600.00
1903    11375078400.00
1904    11375078400.00
1905    11375078400.00
1906    11375078400.00
1907    11375078400.00
1908    11375078400.00
1909    11375078400.00
1910    11375078400.00
1911    11375078400.00
1912    11375078400.00
1913    11390889600.00
1914    11390889600.00
1915    11390889600.00
1916    11390889600.00
1917    11390889600.00
1918    11390889600.00
1919    11390889600.00
1920    11390889600.00
1921    11390889600.00
1922    11390889600.00
1923    12918787200.00
1924    12918787200.00
1925    12918787200.00
1926    12918787200.00
1927    12918787200.00
1928    12918787200.00
1929    12918787200.00
1930    12918787200.00
1931    12918787200.00
1932    12918787200.00
1933    13042512000.00
1934    13042512000.00
1935    13042512000.00
1936    13042512000.00
1937    13042512000.00
1938    13042512000.00
1939    13042512000.00
1940    13042512000.00
1941    13042512000.00
1942    13042512000.00
1943    14391561600.00
1944    14391561600.00
1945    14391561600.00
1946    14391561600.00
1947    14391561600.00
1948    14391561600.00
1949    14391561600.00
1950    14391561600.00
1951    14391561600.00
1952    14391561600.00
1953    16148160000.00
1954    16148160000.00
1955    16148160000.00
1956    16148160000.00
1957    16148160000.00
1958    16148160000.00
1959    16148160000.00
1960    16148160000.00
1961    16148160000.00
1962    16148160000.00
1963 ])
1964 AT_CLEANUP
1965
1966 AT_SETUP([WKYR input format])
1967 AT_KEYWORDS([data-in])
1968 date_in
1969 AT_CHECK([$PERL test-my-rand.pl])
1970 AT_CHECK([$PERL date-in.pl wkyr wWy])
1971 AT_CHECK([test -s wkyr.sps])
1972 AT_CHECK([test -s wkyr.in])
1973 AT_CHECK([pspp -O format=csv wkyr.sps])
1974 AT_CHECK([cat wkyr.out], [0], [dnl
1975     2071958400.00
1976     2071958400.00
1977     2071958400.00
1978     2071958400.00
1979     2071958400.00
1980     2071958400.00
1981     2071958400.00
1982     2071958400.00
1983     2071958400.00
1984     2071958400.00
1985     3083011200.00
1986     3083011200.00
1987     3083011200.00
1988     3083011200.00
1989     3083011200.00
1990     3083011200.00
1991     3083011200.00
1992     3083011200.00
1993     3083011200.00
1994     3083011200.00
1995     4221417600.00
1996     4221417600.00
1997     4221417600.00
1998     4221417600.00
1999     4221417600.00
2000     4221417600.00
2001     4221417600.00
2002     4221417600.00
2003     4221417600.00
2004     4221417600.00
2005     5859388800.00
2006     5859388800.00
2007     5859388800.00
2008     5859388800.00
2009     5859388800.00
2010     5859388800.00
2011     5859388800.00
2012     5859388800.00
2013     5859388800.00
2014     5859388800.00
2015     7472390400.00
2016     7472390400.00
2017     7472390400.00
2018     7472390400.00
2019     7472390400.00
2020     7472390400.00
2021     7472390400.00
2022     7472390400.00
2023     7472390400.00
2024     7472390400.00
2025     8092656000.00
2026     8092656000.00
2027     8092656000.00
2028     8092656000.00
2029     8092656000.00
2030     8092656000.00
2031     8092656000.00
2032     8092656000.00
2033     8092656000.00
2034     8092656000.00
2035    10114070400.00
2036    10114070400.00
2037    10114070400.00
2038    10114070400.00
2039    10114070400.00
2040    10114070400.00
2041    10114070400.00
2042    10114070400.00
2043    10114070400.00
2044    10114070400.00
2045    10945497600.00
2046    10945497600.00
2047    10945497600.00
2048    10945497600.00
2049    10945497600.00
2050    10945497600.00
2051    10945497600.00
2052    10945497600.00
2053    10945497600.00
2054    10945497600.00
2055    11327212800.00
2056    11327212800.00
2057    11327212800.00
2058    11327212800.00
2059    11327212800.00
2060    11327212800.00
2061    11327212800.00
2062    11327212800.00
2063    11327212800.00
2064    11327212800.00
2065    11376374400.00
2066    11376374400.00
2067    11376374400.00
2068    11376374400.00
2069    11376374400.00
2070    11376374400.00
2071    11376374400.00
2072    11376374400.00
2073    11376374400.00
2074    11376374400.00
2075    11390889600.00
2076    11390889600.00
2077    11390889600.00
2078    11390889600.00
2079    11390889600.00
2080    11390889600.00
2081    11390889600.00
2082    11390889600.00
2083    11390889600.00
2084    11390889600.00
2085    12919651200.00
2086    12919651200.00
2087    12919651200.00
2088    12919651200.00
2089    12919651200.00
2090    12919651200.00
2091    12919651200.00
2092    12919651200.00
2093    12919651200.00
2094    12919651200.00
2095    13044067200.00
2096    13044067200.00
2097    13044067200.00
2098    13044067200.00
2099    13044067200.00
2100    13044067200.00
2101    13044067200.00
2102    13044067200.00
2103    13044067200.00
2104    13044067200.00
2105    11327212800.00
2106    11327212800.00
2107    11327212800.00
2108    11327212800.00
2109    11327212800.00
2110    11327212800.00
2111    11327212800.00
2112    11327212800.00
2113    11327212800.00
2114    11327212800.00
2115    11376374400.00
2116    11376374400.00
2117    11376374400.00
2118    11376374400.00
2119    11376374400.00
2120    11376374400.00
2121    11376374400.00
2122    11376374400.00
2123    11376374400.00
2124    11376374400.00
2125    11390889600.00
2126    11390889600.00
2127    11390889600.00
2128    11390889600.00
2129    11390889600.00
2130    11390889600.00
2131    11390889600.00
2132    11390889600.00
2133    11390889600.00
2134    11390889600.00
2135    12919651200.00
2136    12919651200.00
2137    12919651200.00
2138    12919651200.00
2139    12919651200.00
2140    12919651200.00
2141    12919651200.00
2142    12919651200.00
2143    12919651200.00
2144    12919651200.00
2145    13044067200.00
2146    13044067200.00
2147    13044067200.00
2148    13044067200.00
2149    13044067200.00
2150    13044067200.00
2151    13044067200.00
2152    13044067200.00
2153    13044067200.00
2154    13044067200.00
2155    14391907200.00
2156    14391907200.00
2157    14391907200.00
2158    14391907200.00
2159    14391907200.00
2160    14391907200.00
2161    14391907200.00
2162    14391907200.00
2163    14391907200.00
2164    14391907200.00
2165    16149456000.00
2166    16149456000.00
2167    16149456000.00
2168    16149456000.00
2169    16149456000.00
2170    16149456000.00
2171    16149456000.00
2172    16149456000.00
2173    16149456000.00
2174    16149456000.00
2175 ])
2176 AT_CLEANUP
2177
2178 AT_SETUP([DATETIME input format])
2179 AT_KEYWORDS([data-in])
2180 date_in
2181 AT_CHECK([$PERL test-my-rand.pl])
2182 AT_CHECK([$PERL date-in.pl datetime "d-m-y +H:M" "d-m-y +H:M:S"])
2183 AT_CHECK([test -s datetime.sps])
2184 AT_CHECK([test -s datetime.in])
2185 AT_CHECK([pspp -O format=csv datetime.sps])
2186 AT_CHECK([cat datetime.out], [0], [dnl
2187     2071958400.00
2188     2071958400.00
2189     2071958400.00
2190     2071958400.00
2191     2071958400.00
2192     2071958400.00
2193     2071958400.00
2194     2071958400.00
2195     2071958400.00
2196     2071958400.00
2197     3083512200.00
2198     3083512200.00
2199     3083547000.00
2200     3083547000.00
2201     3083547000.00
2202     3083512200.00
2203     3083547000.00
2204     3083547000.00
2205     3083512200.00
2206     3083512200.00
2207     4221545340.00
2208     4221635460.00
2209     4221545340.00
2210     4221545340.00
2211     4221635460.00
2212     4221635460.00
2213     4221545340.00
2214     4221635460.00
2215     4221545340.00
2216     4221635460.00
2217     5859607620.00
2218     5859607620.00
2219     5859515580.00
2220     5859515580.00
2221     5859607620.00
2222     5859607620.00
2223     5859607620.00
2224     5859607620.00
2225     5859515580.00
2226     5859607620.00
2227     7472644440.00
2228     7472654760.00
2229     7472654760.00
2230     7472654760.00
2231     7472654760.00
2232     7472654760.00
2233     7472654760.00
2234     7472654760.00
2235     7472644440.00
2236     7472654760.00
2237     8092817880.00
2238     8092666920.00
2239     8092817880.00
2240     8092666920.00
2241     8092817880.00
2242     8092817880.00
2243     8092666920.00
2244     8092817880.00
2245     8092666920.00
2246     8092817880.00
2247    10114302240.00
2248    10114356960.00
2249    10114302240.00
2250    10114302240.00
2251    10114302240.00
2252    10114356960.00
2253    10114302240.00
2254    10114302240.00
2255    10114302240.00
2256    10114356960.00
2257    10945873020.00
2258    10945986180.00
2259    10945986180.00
2260    10945986180.00
2261    10945873020.00
2262    10945986180.00
2263    10945986180.00
2264    10945873020.00
2265    10945986180.00
2266    10945873020.00
2267    11327628900.00
2268    11327660700.00
2269    11327660700.00
2270    11327660700.00
2271    11327660700.00
2272    11327628900.00
2273    11327628900.00
2274    11327660700.00
2275    11327660700.00
2276    11327660700.00
2277    11376658140.00
2278    11376609060.00
2279    11376658140.00
2280    11376658140.00
2281    11376609060.00
2282    11376658140.00
2283    11376609060.00
2284    11376658140.00
2285    11376658140.00
2286    11376658140.00
2287    11391418620.00
2288    11391418620.00
2289    11391397380.00
2290    11391397380.00
2291    11391418620.00
2292    11391418620.00
2293    11391397380.00
2294    11391418620.00
2295    11391418620.00
2296    11391418620.00
2297    12920229900.00
2298    12920229900.00
2299    12920229900.00
2300    12920229900.00
2301    12920229900.00
2302    12920109300.00
2303    12920229900.00
2304    12920109300.00
2305    12920229900.00
2306    12920229900.00
2307    13044508200.00
2308    13044663000.00
2309    13044508200.00
2310    13044663000.00
2311    13044508200.00
2312    13044508200.00
2313    13044663000.00
2314    13044663000.00
2315    13044663000.00
2316    13044663000.00
2317    11327660700.00
2318    11327628900.00
2319    11327628900.00
2320    11327660700.00
2321    11327628900.00
2322    11327628900.00
2323    11327628900.00
2324    11327628900.00
2325    11327628900.00
2326    11327628900.00
2327    11376609060.00
2328    11376658140.00
2329    11376658140.00
2330    11376609060.00
2331    11376658140.00
2332    11376609060.00
2333    11376658140.00
2334    11376609060.00
2335    11376658140.00
2336    11376658140.00
2337    11391397380.00
2338    11391397380.00
2339    11391418620.00
2340    11391397380.00
2341    11391418620.00
2342    11391418620.00
2343    11391418620.00
2344    11391418620.00
2345    11391418620.00
2346    11391397380.00
2347    12920229900.00
2348    12920229900.00
2349    12920229900.00
2350    12920229900.00
2351    12920229900.00
2352    12920229900.00
2353    12920109300.00
2354    12920229900.00
2355    12920229900.00
2356    12920229900.00
2357    13044508200.00
2358    13044663000.00
2359    13044508200.00
2360    13044508200.00
2361    13044508200.00
2362    13044663000.00
2363    13044663000.00
2364    13044663000.00
2365    13044508200.00
2366    13044508200.00
2367    14392420200.00
2368    14392258200.00
2369    14392420200.00
2370    14392420200.00
2371    14392420200.00
2372    14392420200.00
2373    14392258200.00
2374    14392420200.00
2375    14392420200.00
2376    14392420200.00
2377    16149635760.00
2378    16149635760.00
2379    16149635760.00
2380    16149635760.00
2381    16149635760.00
2382    16149635760.00
2383    16149635760.00
2384    16149635760.00
2385    16149621840.00
2386    16149635760.00
2387     2071958400.00
2388     2071958400.00
2389     2071958400.00
2390     2071958400.00
2391     2071958400.00
2392     2071958400.00
2393     2071958400.00
2394     2071958400.00
2395     2071958400.00
2396     2071958400.00
2397     3083512162.00
2398     3083512162.00
2399     3083512162.00
2400     3083547038.00
2401     3083512162.00
2402     3083512162.00
2403     3083547038.00
2404     3083512162.00
2405     3083547038.00
2406     3083547038.00
2407     4221635495.00
2408     4221545305.00
2409     4221635495.00
2410     4221635495.00
2411     4221635495.00
2412     4221545305.00
2413     4221635495.00
2414     4221635495.00
2415     4221635495.00
2416     4221635495.00
2417     5859607673.00
2418     5859515527.00
2419     5859607673.00
2420     5859607673.00
2421     5859607673.00
2422     5859607673.00
2423     5859515527.00
2424     5859607673.00
2425     5859607673.00
2426     5859607673.00
2427     7472654760.00
2428     7472644440.00
2429     7472654760.00
2430     7472654760.00
2431     7472654760.00
2432     7472644440.00
2433     7472654760.00
2434     7472654760.00
2435     7472644440.00
2436     7472654760.00
2437     8092817891.00
2438     8092817891.00
2439     8092666909.00
2440     8092817891.00
2441     8092817891.00
2442     8092817891.00
2443     8092817891.00
2444     8092817891.00
2445     8092817891.00
2446     8092817891.00
2447    10114302235.00
2448    10114302235.00
2449    10114302235.00
2450    10114356965.00
2451    10114356965.00
2452    10114356965.00
2453    10114356965.00
2454    10114356965.00
2455    10114356965.00
2456    10114302235.00
2457    10945986229.00
2458    10945986229.00
2459    10945872971.00
2460    10945872971.00
2461    10945986229.00
2462    10945986229.00
2463    10945872971.00
2464    10945986229.00
2465    10945986229.00
2466    10945986229.00
2467    11327660709.00
2468    11327660709.00
2469    11327660709.00
2470    11327660709.00
2471    11327660709.00
2472    11327660709.00
2473    11327660709.00
2474    11327660709.00
2475    11327660709.00
2476    11327660709.00
2477    11376658167.00
2478    11376658167.00
2479    11376658167.00
2480    11376658167.00
2481    11376658167.00
2482    11376658167.00
2483    11376658167.00
2484    11376658167.00
2485    11376658167.00
2486    11376658167.00
2487    11391397328.00
2488    11391418672.00
2489    11391418672.00
2490    11391418672.00
2491    11391397328.00
2492    11391418672.00
2493    11391397328.00
2494    11391418672.00
2495    11391418672.00
2496    11391418672.00
2497    12920229944.00
2498    12920229944.00
2499    12920109256.00
2500    12920229944.00
2501    12920229944.00
2502    12920109256.00
2503    12920109256.00
2504    12920109256.00
2505    12920229944.00
2506    12920109256.00
2507    13044663057.00
2508    13044663057.00
2509    13044663057.00
2510    13044508143.00
2511    13044663057.00
2512    13044663057.00
2513    13044663057.00
2514    13044508143.00
2515    13044663057.00
2516    13044663057.00
2517    11327628891.00
2518    11327628891.00
2519    11327660709.00
2520    11327660709.00
2521    11327660709.00
2522    11327628891.00
2523    11327628891.00
2524    11327660709.00
2525    11327660709.00
2526    11327628891.00
2527    11376658167.00
2528    11376658167.00
2529    11376658167.00
2530    11376658167.00
2531    11376658167.00
2532    11376609033.00
2533    11376658167.00
2534    11376609033.00
2535    11376658167.00
2536    11376658167.00
2537    11391418672.00
2538    11391397328.00
2539    11391418672.00
2540    11391397328.00
2541    11391397328.00
2542    11391397328.00
2543    11391397328.00
2544    11391397328.00
2545    11391397328.00
2546    11391397328.00
2547    12920229944.00
2548    12920229944.00
2549    12920229944.00
2550    12920109256.00
2551    12920229944.00
2552    12920229944.00
2553    12920229944.00
2554    12920229944.00
2555    12920229944.00
2556    12920229944.00
2557    13044663057.00
2558    13044663057.00
2559    13044663057.00
2560    13044663057.00
2561    13044508143.00
2562    13044663057.00
2563    13044508143.00
2564    13044508143.00
2565    13044663057.00
2566    13044663057.00
2567    14392258196.00
2568    14392420204.00
2569    14392420204.00
2570    14392420204.00
2571    14392258196.00
2572    14392420204.00
2573    14392420204.00
2574    14392258196.00
2575    14392420204.00
2576    14392420204.00
2577    16149635811.00
2578    16149635811.00
2579    16149635811.00
2580    16149635811.00
2581    16149635811.00
2582    16149621789.00
2583    16149621789.00
2584    16149621789.00
2585    16149635811.00
2586    16149635811.00
2587 ])
2588 AT_CLEANUP
2589
2590 AT_SETUP([TIME input format])
2591 AT_KEYWORDS([data-in])
2592 time_in
2593 AT_CHECK([$PERL test-my-rand.pl])
2594 AT_CHECK([$PERL time-in.pl 0 time +H:M +H:M:S])
2595 AT_CHECK([test -s time.sps])
2596 AT_CHECK([test -s time.data])
2597 AT_CHECK([pspp -O format=csv time.sps])
2598 AT_CHECK([cat time.out], [0], [dnl
2599               .00
2600               .00
2601               .00
2602               .00
2603               .00
2604               .00
2605               .00
2606               .00
2607               .00
2608               .00
2609        -103800.00
2610         103800.00
2611         103800.00
2612        -103800.00
2613         103800.00
2614        -103800.00
2615         103800.00
2616         103800.00
2617        -103800.00
2618         103800.00
2619         477060.00
2620         477060.00
2621         477060.00
2622         477060.00
2623        -477060.00
2624         477060.00
2625         477060.00
2626         477060.00
2627         477060.00
2628        -477060.00
2629          46020.00
2630         -46020.00
2631         -46020.00
2632         -46020.00
2633          46020.00
2634          46020.00
2635         -46020.00
2636          46020.00
2637          46020.00
2638         -46020.00
2639         264360.00
2640         264360.00
2641        -264360.00
2642        -264360.00
2643         264360.00
2644        -264360.00
2645         264360.00
2646        -264360.00
2647        -264360.00
2648        -264360.00
2649         161880.00
2650         161880.00
2651         161880.00
2652         161880.00
2653         161880.00
2654        -161880.00
2655         161880.00
2656         161880.00
2657         161880.00
2658        -161880.00
2659        1064160.00
2660        1064160.00
2661        1064160.00
2662        1064160.00
2663        1064160.00
2664        1064160.00
2665       -1064160.00
2666        1064160.00
2667        1064160.00
2668        1064160.00
2669       -4549380.00
2670        4549380.00
2671        4549380.00
2672        4549380.00
2673        4549380.00
2674        4549380.00
2675        4549380.00
2676       -4549380.00
2677        4549380.00
2678        4549380.00
2679         620700.00
2680        -620700.00
2681         620700.00
2682         620700.00
2683        -620700.00
2684         620700.00
2685        -620700.00
2686        -620700.00
2687         620700.00
2688         620700.00
2689          24540.00
2690         -24540.00
2691          24540.00
2692          24540.00
2693          24540.00
2694          24540.00
2695          24540.00
2696          24540.00
2697          24540.00
2698          24540.00
2699       -1738620.00
2700        1738620.00
2701        1738620.00
2702        1738620.00
2703        1738620.00
2704        1738620.00
2705        1738620.00
2706        1738620.00
2707        1738620.00
2708        1738620.00
2709       48012300.00
2710      -48012300.00
2711      -48012300.00
2712       48012300.00
2713       48012300.00
2714       48012300.00
2715       48012300.00
2716       48012300.00
2717       48012300.00
2718       48012300.00
2719       10445400.00
2720      -10445400.00
2721      -10445400.00
2722       10445400.00
2723       10445400.00
2724       10445400.00
2725      -10445400.00
2726       10445400.00
2727       10445400.00
2728      -10445400.00
2729          15900.00
2730          15900.00
2731         -15900.00
2732          15900.00
2733         -15900.00
2734         -15900.00
2735          15900.00
2736          15900.00
2737          15900.00
2738          15900.00
2739         283740.00
2740        -283740.00
2741         283740.00
2742         283740.00
2743         283740.00
2744        -283740.00
2745         283740.00
2746         283740.00
2747        -283740.00
2748         283740.00
2749         442620.00
2750         442620.00
2751         442620.00
2752         442620.00
2753         442620.00
2754         442620.00
2755         442620.00
2756         442620.00
2757         442620.00
2758        -442620.00
2759          60300.00
2760          60300.00
2761          60300.00
2762          60300.00
2763          60300.00
2764         -60300.00
2765         -60300.00
2766          60300.00
2767         -60300.00
2768         -60300.00
2769         163800.00
2770        -163800.00
2771        -163800.00
2772        -163800.00
2773         163800.00
2774         163800.00
2775         163800.00
2776         163800.00
2777        -163800.00
2778         163800.00
2779         945000.00
2780        -945000.00
2781        -945000.00
2782        -945000.00
2783         945000.00
2784         945000.00
2785         945000.00
2786        -945000.00
2787         945000.00
2788         945000.00
2789       -1907760.00
2790        1907760.00
2791       -1907760.00
2792        1907760.00
2793       -1907760.00
2794        1907760.00
2795        1907760.00
2796        1907760.00
2797        1907760.00
2798       -1907760.00
2799               .00
2800               .00
2801               .00
2802               .00
2803               .00
2804               .00
2805               .00
2806               .00
2807               .00
2808               .00
2809         103839.00
2810         103838.68
2811        -103838.70
2812        -103838.68
2813         103838.70
2814         103838.68
2815        -103839.00
2816         103838.68
2817         103838.70
2818        -103839.00
2819         477095.82
2820         477096.00
2821         477096.00
2822         477095.82
2823         477095.82
2824         477095.82
2825         477095.80
2826        -477095.80
2827         477095.82
2828        -477095.82
2829         -46073.00
2830         -46073.40
2831          46073.00
2832          46073.40
2833          46073.40
2834          46073.00
2835         -46073.00
2836          46073.00
2837          46073.00
2838          46073.00
2839         264360.69
2840        -264360.70
2841         264361.00
2842         264360.70
2843         264360.69
2844         264360.70
2845         264361.00
2846         264360.70
2847        -264361.00
2848         264361.00
2849         161891.00
2850        -161891.20
2851        -161891.00
2852         161891.00
2853        -161891.00
2854         161891.20
2855        -161891.20
2856        -161891.20
2857         161891.20
2858        -161891.19
2859       -1064166.00
2860        1064165.98
2861       -1064166.00
2862       -1064166.00
2863       -1064165.98
2864        1064166.00
2865        1064166.00
2866       -1064166.00
2867       -1064165.98
2868        1064166.00
2869        4549429.00
2870        4549429.27
2871        4549429.27
2872       -4549429.30
2873        4549429.00
2874       -4549429.00
2875        4549429.00
2876        4549429.27
2877        4549429.00
2878        4549429.30
2879         620709.00
2880        -620709.24
2881         620709.24
2882         620709.24
2883         620709.24
2884         620709.20
2885        -620709.24
2886         620709.20
2887         620709.24
2888         620709.24
2889          24567.90
2890          24567.89
2891          24567.90
2892          24568.00
2893          24567.90
2894          24568.00
2895          24568.00
2896         -24567.90
2897          24567.90
2898          24568.00
2899        1738672.56
2900        1738673.00
2901       -1738672.60
2902       -1738672.56
2903        1738673.00
2904        1738673.00
2905        1738673.00
2906        1738672.60
2907       -1738672.56
2908        1738672.60
2909      -48012344.10
2910       48012344.12
2911      -48012344.10
2912      -48012344.00
2913      -48012344.00
2914       48012344.00
2915      -48012344.00
2916      -48012344.00
2917      -48012344.00
2918       48012344.00
2919       10445457.27
2920       10445457.00
2921       10445457.30
2922       10445457.00
2923       10445457.27
2924       10445457.00
2925       10445457.27
2926       10445457.00
2927       10445457.00
2928      -10445457.30
2929         -15909.98
2930          15910.00
2931         -15910.00
2932          15910.00
2933         -15909.98
2934          15910.00
2935         -15909.98
2936          15909.98
2937          15910.00
2938          15909.98
2939        -283767.00
2940         283767.20
2941         283767.20
2942         283767.00
2943        -283767.00
2944         283767.00
2945         283767.24
2946         283767.00
2947         283767.24
2948         283767.00
2949        -442672.00
2950         442672.13
2951         442672.00
2952         442672.13
2953         442672.00
2954         442672.00
2955         442672.00
2956         442672.00
2957        -442672.00
2958         442672.13
2959         -60344.40
2960         -60344.00
2961          60344.00
2962          60344.35
2963          60344.00
2964          60344.40
2965          60344.40
2966         -60344.00
2967          60344.00
2968          60344.40
2969         163857.00
2970         163857.00
2971         163857.00
2972         163857.00
2973         163857.30
2974        -163857.30
2975         163857.30
2976        -163857.00
2977        -163857.00
2978         163857.30
2979         945004.30
2980         945004.00
2981         945004.27
2982         945004.30
2983         945004.30
2984         945004.00
2985         945004.30
2986         945004.00
2987         945004.00
2988         945004.00
2989        1907811.00
2990        1907811.00
2991       -1907811.00
2992        1907811.18
2993        1907811.20
2994        1907811.00
2995       -1907811.00
2996        1907811.18
2997       -1907811.00
2998       -1907811.00
2999 ])
3000 AT_CLEANUP
3001
3002 AT_SETUP([DTIME input format])
3003 AT_KEYWORDS([data-in])
3004 time_in
3005 AT_CHECK([$PERL test-my-rand.pl])
3006 AT_CHECK([$PERL time-in.pl 2000 dtime '+D H:M' '+D H:M:S'])
3007 AT_CHECK([test -s dtime.sps])
3008 AT_CHECK([test -s dtime.data])
3009 AT_CHECK([pspp -O format=csv dtime.sps])
3010 AT_CHECK([cat dtime.out], [0], [dnl
3011               .00
3012               .00
3013               .00
3014               .00
3015               .00
3016               .00
3017               .00
3018               .00
3019               .00
3020               .00
3021         103800.00
3022         103800.00
3023        -103800.00
3024         103800.00
3025         103800.00
3026        -103800.00
3027         103800.00
3028        -103800.00
3029         103800.00
3030        -103800.00
3031         477060.00
3032         477060.00
3033         477060.00
3034         477060.00
3035         477060.00
3036         477060.00
3037        -477060.00
3038        -477060.00
3039        -477060.00
3040         477060.00
3041          46020.00
3042          46020.00
3043          46020.00
3044          46020.00
3045         -46020.00
3046         -46020.00
3047         -46020.00
3048          46020.00
3049          46020.00
3050          46020.00
3051         264360.00
3052         264360.00
3053        -264360.00
3054         264360.00
3055         264360.00
3056         264360.00
3057         264360.00
3058        -264360.00
3059        -264360.00
3060        -264360.00
3061        -161880.00
3062        -161880.00
3063         161880.00
3064         161880.00
3065         161880.00
3066        -161880.00
3067         161880.00
3068        -161880.00
3069         161880.00
3070        -161880.00
3071        1064160.00
3072        1064160.00
3073        1064160.00
3074        1064160.00
3075        1064160.00
3076        1064160.00
3077       -1064160.00
3078        1064160.00
3079        1064160.00
3080        1064160.00
3081       -4549380.00
3082        4549380.00
3083       -4549380.00
3084       -4549380.00
3085       -4549380.00
3086        4549380.00
3087        4549380.00
3088        4549380.00
3089        4549380.00
3090        4549380.00
3091        -620700.00
3092         620700.00
3093         620700.00
3094        -620700.00
3095         620700.00
3096         620700.00
3097         620700.00
3098        -620700.00
3099         620700.00
3100         620700.00
3101         -24540.00
3102          24540.00
3103          24540.00
3104          24540.00
3105         -24540.00
3106          24540.00
3107          24540.00
3108         -24540.00
3109          24540.00
3110         -24540.00
3111        1738620.00
3112        1738620.00
3113        1738620.00
3114       -1738620.00
3115       -1738620.00
3116       -1738620.00
3117        1738620.00
3118        1738620.00
3119        1738620.00
3120        1738620.00
3121       48012300.00
3122       48012300.00
3123       48012300.00
3124       48012300.00
3125       48012300.00
3126      -48012300.00
3127      -48012300.00
3128       48012300.00
3129      -48012300.00
3130      -48012300.00
3131      -10445400.00
3132       10445400.00
3133      -10445400.00
3134       10445400.00
3135       10445400.00
3136       10445400.00
3137       10445400.00
3138       10445400.00
3139       10445400.00
3140       10445400.00
3141          15900.00
3142          15900.00
3143          15900.00
3144          15900.00
3145          15900.00
3146         -15900.00
3147          15900.00
3148          15900.00
3149          15900.00
3150          15900.00
3151        -283740.00
3152         283740.00
3153        -283740.00
3154        -283740.00
3155         283740.00
3156         283740.00
3157         283740.00
3158         283740.00
3159         283740.00
3160        -283740.00
3161         442620.00
3162        -442620.00
3163        -442620.00
3164         442620.00
3165         442620.00
3166        -442620.00
3167        -442620.00
3168        -442620.00
3169         442620.00
3170         442620.00
3171          60300.00
3172         -60300.00
3173          60300.00
3174          60300.00
3175          60300.00
3176          60300.00
3177          60300.00
3178          60300.00
3179          60300.00
3180          60300.00
3181         163800.00
3182         163800.00
3183        -163800.00
3184         163800.00
3185        -163800.00
3186        -163800.00
3187        -163800.00
3188         163800.00
3189         163800.00
3190        -163800.00
3191         945000.00
3192         945000.00
3193         945000.00
3194         945000.00
3195        -945000.00
3196         945000.00
3197         945000.00
3198         945000.00
3199         945000.00
3200        -945000.00
3201       -1907760.00
3202        1907760.00
3203        1907760.00
3204        1907760.00
3205       -1907760.00
3206       -1907760.00
3207       -1907760.00
3208        1907760.00
3209       -1907760.00
3210       -1907760.00
3211               .00
3212               .00
3213               .00
3214               .00
3215               .00
3216               .00
3217               .00
3218               .00
3219               .00
3220               .00
3221         103838.70
3222         103838.70
3223         103839.00
3224         103838.68
3225         103838.70
3226         103839.00
3227         103838.70
3228        -103839.00
3229         103839.00
3230         103839.00
3231         477095.80
3232         477095.80
3233        -477095.80
3234         477095.82
3235         477095.82
3236         477095.82
3237        -477095.82
3238         477095.82
3239         477096.00
3240        -477096.00
3241         -46073.00
3242          46073.00
3243         -46073.00
3244          46073.41
3245          46073.00
3246          46073.40
3247          46073.00
3248          46073.41
3249          46073.41
3250         -46073.00
3251         264360.70
3252         264360.70
3253         264360.69
3254         264361.00
3255        -264360.70
3256         264360.69
3257        -264360.70
3258         264360.69
3259        -264361.00
3260         264360.69
3261         161891.00
3262        -161891.20
3263        -161891.19
3264         161891.19
3265         161891.00
3266         161891.20
3267         161891.20
3268         161891.00
3269         161891.00
3270         161891.20
3271       -1064165.98
3272        1064166.00
3273        1064166.00
3274        1064166.00
3275        1064165.98
3276        1064166.00
3277        1064166.00
3278       -1064165.98
3279        1064165.98
3280       -1064166.00
3281        4549429.27
3282        4549429.27
3283        4549429.27
3284        4549429.27
3285        4549429.00
3286        4549429.27
3287       -4549429.27
3288        4549429.00
3289        4549429.27
3290        4549429.27
3291        -620709.00
3292         620709.20
3293         620709.00
3294        -620709.20
3295        -620709.24
3296        -620709.00
3297         620709.00
3298         620709.24
3299        -620709.24
3300         620709.00
3301         -24567.89
3302          24567.90
3303          24568.00
3304          24567.89
3305          24568.00
3306          24568.00
3307          24567.90
3308         -24568.00
3309         -24567.89
3310         -24568.00
3311        1738672.56
3312       -1738672.56
3313        1738672.56
3314       -1738672.60
3315       -1738673.00
3316        1738672.56
3317        1738673.00
3318       -1738672.60
3319        1738672.60
3320        1738672.56
3321       48012344.00
3322      -48012344.12
3323      -48012344.00
3324       48012344.12
3325      -48012344.12
3326      -48012344.00
3327       48012344.12
3328      -48012344.00
3329      -48012344.00
3330      -48012344.00
3331      -10445457.00
3332       10445457.00
3333       10445457.00
3334       10445457.00
3335      -10445457.00
3336      -10445457.00
3337       10445457.00
3338       10445457.00
3339       10445457.00
3340      -10445457.30
3341         -15909.98
3342          15910.00
3343         -15909.98
3344          15910.00
3345          15910.00
3346         -15910.00
3347         -15910.00
3348         -15910.00
3349         -15910.00
3350          15909.98
3351        -283767.24
3352         283767.20
3353         283767.24
3354         283767.24
3355         283767.00
3356         283767.20
3357         283767.20
3358         283767.24
3359        -283767.00
3360         283767.24
3361         442672.13
3362        -442672.13
3363         442672.00
3364         442672.13
3365         442672.10
3366         442672.00
3367         442672.00
3368        -442672.10
3369         442672.00
3370        -442672.10
3371         -60344.35
3372          60344.00
3373          60344.00
3374         -60344.00
3375          60344.00
3376          60344.35
3377          60344.00
3378          60344.35
3379          60344.00
3380          60344.00
3381        -163857.00
3382        -163857.00
3383         163857.32
3384         163857.00
3385        -163857.30
3386        -163857.00
3387         163857.30
3388         163857.00
3389         163857.00
3390        -163857.00
3391        -945004.00
3392        -945004.30
3393         945004.27
3394         945004.27
3395        -945004.27
3396        -945004.27
3397        -945004.00
3398        -945004.27
3399        -945004.00
3400         945004.30
3401        1907811.00
3402        1907811.00
3403        1907811.00
3404        1907811.00
3405        1907811.20
3406        1907811.18
3407        1907811.18
3408        1907811.18
3409        1907811.18
3410        1907811.00
3411 ])
3412 AT_CLEANUP
3413
3414 AT_SETUP([binary and hexadecimal input (IB, PIB, and PIBHEX formats)])
3415 AT_CHECK([$PERL -e 'print pack "n", $_ foreach 0...65535' > binhex-in.data])
3416 AT_CHECK([wc -c < binhex-in.data | sed 's/[     ]//g'], [0], [131072
3417 ])
3418 AT_DATA([binhex-in.sps], [dnl
3419 SET RIB=MSBFIRST.
3420 SET ERRORS=NONE.
3421 SET MXWARNS=10000000.
3422 SET MXERRS=10000000.
3423 FILE HANDLE data/NAME='binhex-in.data'/MODE=IMAGE/LRECL=2.
3424 DATA LIST FILE=data NOTABLE/ib 1-2 (IB) pib 1-2 (PIB) pibhex 1-2 (PIBHEX).
3425 COMPUTE x=$CASENUM - 1.
3426 PRINT OUTFILE='binhex-in.out'/x (PIBHEX4) ' ' ib pib pibhex.
3427 EXECUTE.
3428 ])
3429 AT_CHECK([gzip -cd < $top_srcdir/tests/data/binhex-in.expected.cmp.gz | \
3430             $PERL -pe "printf ' %04X ', $.-1" > expout])
3431 AT_CHECK([pspp -O format=csv binhex-in.sps], [0])
3432 AT_CHECK([cat binhex-in.out], [0], [expout])
3433 AT_CLEANUP
3434
3435 AT_SETUP([BCD input (P and PK formats)])
3436 AT_CHECK([$PERL -e 'print pack "n", $_ foreach 0...65535' > bcd-in.data])
3437 AT_CHECK([wc -c < bcd-in.data | sed 's/[        ]//g'], [0], [131072
3438 ])
3439 AT_DATA([bcd-in.sps], [dnl
3440 SET ERRORS=NONE.
3441 SET MXWARNS=10000000.
3442 SET MXERRS=10000000.
3443 FILE HANDLE data/NAME='bcd-in.data'/MODE=IMAGE/LRECL=2.
3444 DATA LIST FILE=data NOTABLE/p 1-2 (P) pk 1-2 (PK).
3445 COMPUTE x=$CASENUM - 1.
3446 PRINT OUTFILE='bcd-in.out'/x (PIBHEX4) ' ' P PK.
3447 EXECUTE.
3448 ])
3449 AT_CHECK([gzip -cd < $top_srcdir/tests/data/bcd-in.expected.cmp.gz | \
3450             $PERL -pe "printf ' %04X ', $.-1" > expout])
3451 AT_CHECK([pspp -O format=csv bcd-in.sps])
3452 AT_CHECK([cat bcd-in.out], [0], [expout])
3453 AT_CLEANUP
3454
3455 AT_SETUP([legacy input (N and Z formats)])
3456 AT_CHECK([$PERL -e 'print pack "n", $_ foreach 0...65535' > legacy-in.data])
3457 AT_CHECK([wc -c < legacy-in.data | sed 's/[     ]//g'], [0], [131072
3458 ])
3459 AT_DATA([legacy-in.sps], [dnl
3460 SET ERRORS=NONE.
3461 SET MXWARNS=10000000.
3462 SET MXERRS=10000000.
3463 FILE HANDLE data/NAME='legacy-in.data'/MODE=IMAGE/LRECL=2.
3464 DATA LIST NOTABLE FILE=data/n 1-2 (N) z 1-2 (z).
3465 COMPUTE x=$CASENUM - 1.
3466 PRINT OUTFILE='legacy-in.out'/x (PIBHEX4) ' ' N Z.
3467 EXECUTE.
3468 ])
3469 AT_CHECK([gzip -cd < $top_srcdir/tests/data/legacy-in.expected.cmp.gz | \
3470             $PERL -pe "printf ' %04X ', $.-1" > expout])
3471 AT_CHECK([pspp -O format=csv legacy-in.sps])
3472 AT_CHECK([cat legacy-in.out], [0], [expout])
3473 AT_CLEANUP
3474
3475 AT_SETUP([WKDAY input format])
3476 AT_DATA([wkday.sps], [dnl
3477 DATA LIST NOTABLE /wkday2 1-2 (wkday)
3478                    wkday3 1-3 (wkday)
3479                    wkday4 1-4 (wkday)
3480                    wkday5 1-5 (wkday)
3481                    wkday6 1-6 (wkday)
3482                    wkday7 1-7 (wkday)
3483                    wkday8 1-8 (wkday)
3484                    wkday9 1-9 (wkday)
3485                    wkday10 1-10 (wkday).
3486 BEGIN DATA.
3487
3488 .
3489 monady
3490 tuseday
3491 WEDENSDAY
3492 Thurdsay
3493 fRidya
3494 SAturady
3495 sudnay
3496 sturday
3497 END DATA.
3498 FORMATS ALL (WKDAY2).
3499 PRINT OUTFILE='wkday.out'/ALL.
3500 EXECUTE.
3501 ])
3502 AT_CHECK([pspp -O format=csv wkday.sps], [0], [dnl
3503 wkday.sps:20.1-20.2: warning: Data for variable wkday2 is not valid as format WKDAY: Unrecognized weekday name.  At least the first two letters of an English weekday name must be specified.
3504
3505 wkday.sps:20.1-20.3: warning: Data for variable wkday3 is not valid as format WKDAY: Unrecognized weekday name.  At least the first two letters of an English weekday name must be specified.
3506
3507 wkday.sps:20.1-20.4: warning: Data for variable wkday4 is not valid as format WKDAY: Unrecognized weekday name.  At least the first two letters of an English weekday name must be specified.
3508
3509 wkday.sps:20.1-20.5: warning: Data for variable wkday5 is not valid as format WKDAY: Unrecognized weekday name.  At least the first two letters of an English weekday name must be specified.
3510
3511 wkday.sps:20.1-20.6: warning: Data for variable wkday6 is not valid as format WKDAY: Unrecognized weekday name.  At least the first two letters of an English weekday name must be specified.
3512
3513 wkday.sps:20.1-20.7: warning: Data for variable wkday7 is not valid as format WKDAY: Unrecognized weekday name.  At least the first two letters of an English weekday name must be specified.
3514
3515 wkday.sps:20.1-20.8: warning: Data for variable wkday8 is not valid as format WKDAY: Unrecognized weekday name.  At least the first two letters of an English weekday name must be specified.
3516
3517 wkday.sps:20.1-20.9: warning: Data for variable wkday9 is not valid as format WKDAY: Unrecognized weekday name.  At least the first two letters of an English weekday name must be specified.
3518
3519 wkday.sps:20.1-20.10: warning: Data for variable wkday10 is not valid as format WKDAY: Unrecognized weekday name.  At least the first two letters of an English weekday name must be specified.
3520 ])
3521 AT_CHECK([cat wkday.out], [0], [dnl
3522   .  .  .  .  .  .  .  .  . @&t@
3523   .  .  .  .  .  .  .  .  . @&t@
3524  MO MO MO MO MO MO MO MO MO @&t@
3525  TU TU TU TU TU TU TU TU TU @&t@
3526  WE WE WE WE WE WE WE WE WE @&t@
3527  TH TH TH TH TH TH TH TH TH @&t@
3528  FR FR FR FR FR FR FR FR FR @&t@
3529  SA SA SA SA SA SA SA SA SA @&t@
3530  SU SU SU SU SU SU SU SU SU @&t@
3531   .  .  .  .  .  .  .  .  . @&t@
3532 ])
3533 AT_CLEANUP
3534
3535 AT_SETUP([MONTH input format])
3536 AT_DATA([month.sps], [dnl
3537 DATA LIST NOTABLE /month3 1-3 (MONTH)
3538                    month4 1-4 (MONTH)
3539                    month5 1-5 (MONTH)
3540                    month6 1-6 (MONTH)
3541                    month7 1-7 (MONTH)
3542                    month8 1-8 (MONTH)
3543                    month9 1-9 (MONTH)
3544                    month10 1-10 (MONTH).
3545 BEGIN DATA.
3546
3547 .
3548 i
3549 ii
3550 iii
3551 iiii
3552 iv
3553 v
3554 vi
3555 vii
3556 viii
3557 ix
3558 viiii
3559 x
3560 xi
3561 xii
3562 0
3563 1
3564 2
3565 3
3566 4
3567 5
3568 6
3569 7
3570 8
3571 9
3572 10
3573 11
3574 12
3575 13
3576 january
3577 JANAURY
3578 February
3579 fEbraury
3580 MArch
3581 marhc
3582 apRIL
3583 may
3584 june
3585 july
3586 august
3587 september
3588 october
3589 november
3590 decmeber
3591 december
3592 END DATA.
3593 FORMATS ALL (MONTH3).
3594 PRINT OUTFILE='month.out'/ALL.
3595 EXECUTE.
3596 ])
3597 AT_CHECK([pspp -O format=csv month.sps], [0], [dnl
3598 month.sps:15.1-15.4: warning: Data for variable month4 is not valid as format MONTH: Unrecognized month format.  Months may be specified as Arabic or Roman numerals or as at least 3 letters of their English names.
3599
3600 month.sps:15.1-15.5: warning: Data for variable month5 is not valid as format MONTH: Unrecognized month format.  Months may be specified as Arabic or Roman numerals or as at least 3 letters of their English names.
3601
3602 month.sps:15.1-15.6: warning: Data for variable month6 is not valid as format MONTH: Unrecognized month format.  Months may be specified as Arabic or Roman numerals or as at least 3 letters of their English names.
3603
3604 month.sps:15.1-15.7: warning: Data for variable month7 is not valid as format MONTH: Unrecognized month format.  Months may be specified as Arabic or Roman numerals or as at least 3 letters of their English names.
3605
3606 month.sps:15.1-15.8: warning: Data for variable month8 is not valid as format MONTH: Unrecognized month format.  Months may be specified as Arabic or Roman numerals or as at least 3 letters of their English names.
3607
3608 month.sps:15.1-15.9: warning: Data for variable month9 is not valid as format MONTH: Unrecognized month format.  Months may be specified as Arabic or Roman numerals or as at least 3 letters of their English names.
3609
3610 month.sps:15.1-15.10: warning: Data for variable month10 is not valid as format MONTH: Unrecognized month format.  Months may be specified as Arabic or Roman numerals or as at least 3 letters of their English names.
3611
3612 month.sps:26.1-26.3: warning: Data for variable month3 is not valid as format MONTH: Unrecognized month format.  Months may be specified as Arabic or Roman numerals or as at least 3 letters of their English names.
3613
3614 month.sps:26.1-26.4: warning: Data for variable month4 is not valid as format MONTH: Unrecognized month format.  Months may be specified as Arabic or Roman numerals or as at least 3 letters of their English names.
3615
3616 month.sps:26.1-26.5: warning: Data for variable month5 is not valid as format MONTH: Unrecognized month format.  Months may be specified as Arabic or Roman numerals or as at least 3 letters of their English names.
3617
3618 month.sps:26.1-26.6: warning: Data for variable month6 is not valid as format MONTH: Unrecognized month format.  Months may be specified as Arabic or Roman numerals or as at least 3 letters of their English names.
3619
3620 month.sps:26.1-26.7: warning: Data for variable month7 is not valid as format MONTH: Unrecognized month format.  Months may be specified as Arabic or Roman numerals or as at least 3 letters of their English names.
3621
3622 month.sps:26.1-26.8: warning: Data for variable month8 is not valid as format MONTH: Unrecognized month format.  Months may be specified as Arabic or Roman numerals or as at least 3 letters of their English names.
3623
3624 month.sps:26.1-26.9: warning: Data for variable month9 is not valid as format MONTH: Unrecognized month format.  Months may be specified as Arabic or Roman numerals or as at least 3 letters of their English names.
3625
3626 month.sps:26.1-26.10: warning: Data for variable month10 is not valid as format MONTH: Unrecognized month format.  Months may be specified as Arabic or Roman numerals or as at least 3 letters of their English names.
3627
3628 month.sps:39.1-39.3: warning: Data for variable month3 is not valid as format MONTH: Unrecognized month format.  Months may be specified as Arabic or Roman numerals or as at least 3 letters of their English names.
3629
3630 month.sps:39.1-39.4: warning: Data for variable month4 is not valid as format MONTH: Unrecognized month format.  Months may be specified as Arabic or Roman numerals or as at least 3 letters of their English names.
3631
3632 month.sps:39.1-39.5: warning: Data for variable month5 is not valid as format MONTH: Unrecognized month format.  Months may be specified as Arabic or Roman numerals or as at least 3 letters of their English names.
3633
3634 month.sps:39.1-39.6: warning: Data for variable month6 is not valid as format MONTH: Unrecognized month format.  Months may be specified as Arabic or Roman numerals or as at least 3 letters of their English names.
3635
3636 month.sps:39.1-39.7: warning: Data for variable month7 is not valid as format MONTH: Unrecognized month format.  Months may be specified as Arabic or Roman numerals or as at least 3 letters of their English names.
3637
3638 month.sps:39.1-39.8: warning: Data for variable month8 is not valid as format MONTH: Unrecognized month format.  Months may be specified as Arabic or Roman numerals or as at least 3 letters of their English names.
3639
3640 month.sps:39.1-39.9: warning: Data for variable month9 is not valid as format MONTH: Unrecognized month format.  Months may be specified as Arabic or Roman numerals or as at least 3 letters of their English names.
3641
3642 month.sps:39.1-39.10: warning: Data for variable month10 is not valid as format MONTH: Unrecognized month format.  Months may be specified as Arabic or Roman numerals or as at least 3 letters of their English names.
3643 ])
3644 AT_CHECK([cat month.out], [0], [dnl
3645    .   .   .   .   .   .   .   . @&t@
3646    .   .   .   .   .   .   .   . @&t@
3647  JAN JAN JAN JAN JAN JAN JAN JAN @&t@
3648  FEB FEB FEB FEB FEB FEB FEB FEB @&t@
3649  MAR MAR MAR MAR MAR MAR MAR MAR @&t@
3650  MAR   .   .   .   .   .   .   . @&t@
3651  APR APR APR APR APR APR APR APR @&t@
3652  MAY MAY MAY MAY MAY MAY MAY MAY @&t@
3653  JUN JUN JUN JUN JUN JUN JUN JUN @&t@
3654  JUL JUL JUL JUL JUL JUL JUL JUL @&t@
3655  JUL AUG AUG AUG AUG AUG AUG AUG @&t@
3656  SEP SEP SEP SEP SEP SEP SEP SEP @&t@
3657  JUL AUG AUG AUG AUG AUG AUG AUG @&t@
3658  OCT OCT OCT OCT OCT OCT OCT OCT @&t@
3659  NOV NOV NOV NOV NOV NOV NOV NOV @&t@
3660  DEC DEC DEC DEC DEC DEC DEC DEC @&t@
3661    .   .   .   .   .   .   .   . @&t@
3662  JAN JAN JAN JAN JAN JAN JAN JAN @&t@
3663  FEB FEB FEB FEB FEB FEB FEB FEB @&t@
3664  MAR MAR MAR MAR MAR MAR MAR MAR @&t@
3665  APR APR APR APR APR APR APR APR @&t@
3666  MAY MAY MAY MAY MAY MAY MAY MAY @&t@
3667  JUN JUN JUN JUN JUN JUN JUN JUN @&t@
3668  JUL JUL JUL JUL JUL JUL JUL JUL @&t@
3669  AUG AUG AUG AUG AUG AUG AUG AUG @&t@
3670  SEP SEP SEP SEP SEP SEP SEP SEP @&t@
3671  OCT OCT OCT OCT OCT OCT OCT OCT @&t@
3672  NOV NOV NOV NOV NOV NOV NOV NOV @&t@
3673  DEC DEC DEC DEC DEC DEC DEC DEC @&t@
3674    .   .   .   .   .   .   .   . @&t@
3675  JAN JAN JAN JAN JAN JAN JAN JAN @&t@
3676  JAN JAN JAN JAN JAN JAN JAN JAN @&t@
3677  FEB FEB FEB FEB FEB FEB FEB FEB @&t@
3678  FEB FEB FEB FEB FEB FEB FEB FEB @&t@
3679  MAR MAR MAR MAR MAR MAR MAR MAR @&t@
3680  MAR MAR MAR MAR MAR MAR MAR MAR @&t@
3681  APR APR APR APR APR APR APR APR @&t@
3682  MAY MAY MAY MAY MAY MAY MAY MAY @&t@
3683  JUN JUN JUN JUN JUN JUN JUN JUN @&t@
3684  JUL JUL JUL JUL JUL JUL JUL JUL @&t@
3685  AUG AUG AUG AUG AUG AUG AUG AUG @&t@
3686  SEP SEP SEP SEP SEP SEP SEP SEP @&t@
3687  OCT OCT OCT OCT OCT OCT OCT OCT @&t@
3688  NOV NOV NOV NOV NOV NOV NOV NOV @&t@
3689  DEC DEC DEC DEC DEC DEC DEC DEC @&t@
3690  DEC DEC DEC DEC DEC DEC DEC DEC @&t@
3691 ])
3692 AT_CLEANUP