Blame t/base.day_of_year.0.t

Packit Service 653591
#!/usr/bin/perl -w
Packit Service 653591
Packit Service 653591
use Test::Inter;
Packit Service 653591
$t = new Test::Inter 'base :: day_of_year (Y/M/D)';
Packit Service 653591
$testdir = '';
Packit Service 653591
$testdir = $t->testdir();
Packit Service 653591
Packit Service 653591
use Date::Manip;
Packit Service 653591
if (DateManipVersion() >= 6.00) {
Packit Service 653591
   $t->feature("DM6",1);
Packit Service 653591
}
Packit Service 653591
Packit Service 653591
$t->skip_all('Date::Manip 6.xx required','DM6');
Packit Service 653591
Packit Service 653591
Packit Service 653591
sub test {
Packit Service 653591
  (@test)=@_;
Packit Service 653591
  @ret = $obj->day_of_year(@test);
Packit Service 653591
  return @ret;
Packit Service 653591
}
Packit Service 653591
Packit Service 653591
$dmt = new Date::Manip::TZ;
Packit Service 653591
$obj = $dmt->base();
Packit Service 653591
$dmt->config("forcedate","now,America/New_York");
Packit Service 653591
Packit Service 653591
$tests="
Packit Service 653591
Packit Service 653591
[ 1999 1 1 ]  => 1
Packit Service 653591
Packit Service 653591
[ 1999 1 21 ] => 21
Packit Service 653591
Packit Service 653591
[ 1999 3 1 ]  => 60
Packit Service 653591
Packit Service 653591
[ 2000 3 1 ]  => 61
Packit Service 653591
Packit Service 653591
[ 1980 2 29 ] => 60
Packit Service 653591
Packit Service 653591
[ 1980 3 1 ]  => 61
Packit Service 653591
Packit Service 653591
Packit Service 653591
1999 1  => [ 1999 1 1 ]
Packit Service 653591
Packit Service 653591
1999 21 => [ 1999 1 21 ]
Packit Service 653591
Packit Service 653591
1999 60 => [ 1999 3 1 ]
Packit Service 653591
Packit Service 653591
2000 61 => [ 2000 3 1 ]
Packit Service 653591
Packit Service 653591
1980 60 => [ 1980 2 29 ]
Packit Service 653591
Packit Service 653591
1980 61 => [ 1980 3 1 ]
Packit Service 653591
Packit Service 653591
";
Packit Service 653591
Packit Service 653591
$t->tests(func  => \&test,
Packit Service 653591
          tests => $tests);
Packit Service 653591
$t->done_testing();
Packit Service 653591
Packit Service 653591
#Local Variables:
Packit Service 653591
#mode: cperl
Packit Service 653591
#indent-tabs-mode: nil
Packit Service 653591
#cperl-indent-level: 3
Packit Service 653591
#cperl-continued-statement-offset: 2
Packit Service 653591
#cperl-continued-brace-offset: 0
Packit Service 653591
#cperl-brace-offset: 0
Packit Service 653591
#cperl-brace-imaginary-offset: 0
Packit Service 653591
#cperl-label-offset: 0
Packit Service 653591
#End: