The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
#!/usr/bin/perl -w

BEGIN {
  use Test::Inter;
  $t = new Test::Inter 'Date';
}

BEGIN { $t->use_ok('Sort::DataTypes',':all'); }

BEGIN { $t->use_ok('Date::Manip'); }
Date_Init("TZ=EST");

sub test {
  ($list,@args)=@_;
  sort_date($list,@args);
  return @$list;
}

$tests = "
[ 'Jul 4 2000'
'May 31 2000'
'Dec 31 1999'
'Jan 3 2001' ]
=>
  'Dec 31 1999'
  'May 31 2000'
  'Jul 4 2000'
  'Jan 3 2001'

";

$t->tests(func  => \&test,
          tests => $tests);
$t->done_testing();

1;
# Local Variables:
# mode: cperl
# indent-tabs-mode: nil
# cperl-indent-level: 3
# cperl-continued-statement-offset: 2
# cperl-continued-brace-offset: 0
# cperl-brace-offset: 0
# cperl-brace-imaginary-offset: 0
# cperl-label-offset: -2
# End: