1#!/usr/bin/perl
2
3use warnings;
4use strict;
5use Test::Inter;
6$::ti = new Test::Inter $0;
7require "tests.pl";
8
9our $obj = new Date::Manip::TZ;
10$obj->config("forcedate","now,America/New_York");
11
12sub test {
13   my($abbrev,@zone)=@_;
14   $obj->define_abbrev("reset");
15   $obj->define_abbrev($abbrev,@zone);
16   return $obj->zone($abbrev);
17}
18
19my $tests="
20
21EWT reset =>
22   America/New_York
23   America/Detroit
24   America/Iqaluit
25   America/Nassau
26   America/Nipigon
27   America/Thunder_Bay
28   America/Toronto
29
30EWT
31America/New_York
32America/Iqaluit
33America/Thunder_Bay
34   =>
35   America/New_York
36   America/Iqaluit
37   America/Thunder_Bay
38";
39
40$::ti->tests(func  => \&test,
41             tests => $tests);
42$::ti->done_testing();
43
44#Local Variables:
45#mode: cperl
46#indent-tabs-mode: nil
47#cperl-indent-level: 3
48#cperl-continued-statement-offset: 2
49#cperl-continued-brace-offset: 0
50#cperl-brace-offset: 0
51#cperl-brace-imaginary-offset: 0
52#cperl-label-offset: 0
53#End:
54