Blame t/tz.convert_from_gmt.t

Packit 95306a
#!/usr/bin/perl -w
Packit 95306a
Packit 95306a
use Test::Inter;
Packit 95306a
$t = new Test::Inter 'tz :: convert_from_gmt';
Packit 95306a
$testdir = '';
Packit 95306a
$testdir = $t->testdir();
Packit 95306a
Packit 95306a
use Date::Manip;
Packit 95306a
if (DateManipVersion() >= 6.00) {
Packit 95306a
   $t->feature("DM6",1);
Packit 95306a
}
Packit 95306a
Packit 95306a
$t->skip_all('Date::Manip 6.xx required','DM6');
Packit 95306a
Packit 95306a
Packit 95306a
sub test {
Packit 95306a
  (@test)=@_;
Packit 95306a
  return $obj->convert_from_gmt(@test);
Packit 95306a
}
Packit 95306a
Packit 95306a
$obj = new Date::Manip::TZ;
Packit 95306a
$obj->config("forcedate","now,America/New_York");
Packit 95306a
Packit 95306a
$tests="
Packit 95306a
[ 1985 1 1 17 0 0 ] America/New_York =>
Packit 95306a
  0 [ 1985 1 1 12 0 0 ] [ -5 0 0 ] 0 EST
Packit 95306a
Packit 95306a
[ 1985 4 28 7 0 0 ] America/New_York =>
Packit 95306a
  0 [ 1985 4 28 3 0 0 ] [ -4 0 0 ] 1 EDT
Packit 95306a
Packit 95306a
[ 1985 10 27 6 0 0 ] America/New_York =>
Packit 95306a
  0 [ 1985 10 27 1 0 0 ] [ -5 0 0 ] 0 EST
Packit 95306a
Packit 95306a
[ 1985 10 27 5 0 0 ] America/New_York =>
Packit 95306a
  0 [ 1985 10 27 1 0 0 ] [ -4 0 0 ] 1 EDT
Packit 95306a
Packit 95306a
";
Packit 95306a
Packit 95306a
$t->tests(func  => \&test,
Packit 95306a
          tests => $tests);
Packit 95306a
$t->done_testing();
Packit 95306a
Packit 95306a
#Local Variables:
Packit 95306a
#mode: cperl
Packit 95306a
#indent-tabs-mode: nil
Packit 95306a
#cperl-indent-level: 3
Packit 95306a
#cperl-continued-statement-offset: 2
Packit 95306a
#cperl-continued-brace-offset: 0
Packit 95306a
#cperl-brace-offset: 0
Packit 95306a
#cperl-brace-imaginary-offset: 0
Packit 95306a
#cperl-label-offset: 0
Packit 95306a
#End: