X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FTime%2Flocaltime.t;h=f300343ff8ff7cd11f890d6fe59a4dea0d16419b;hb=461d5a49bcaf1bdc023edb10ef9b6c0606ec0131;hp=8600eff3e7efc331acc25c72ba7a25a35e0d093d;hpb=b86b480f7301a8816081189c89b366a79ab9909f;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/Time/localtime.t b/lib/Time/localtime.t index 8600eff..f300343 100644 --- a/lib/Time/localtime.t +++ b/lib/Time/localtime.t @@ -7,8 +7,9 @@ BEGIN { require "./test.pl"; } +my(@times, @methods); BEGIN { - @times = (-2**33, -2**31-1, 0, 2**31-1, 2**33, time); + @times = (-2**62, -2**50, -2**33, -2**31-1, -1, 0, 1, 2**31-1, 2**33, 2**50, 2**62, time); @methods = qw(sec min hour mday mon year wday yday isdst); plan tests => (@times * @methods) + 1; @@ -16,8 +17,6 @@ BEGIN { use_ok Time::localtime; } -# Since Perl's localtime() still uses the system localtime, don't try -# to do negative times. The system might not support it. for my $time (@times) { my $localtime = localtime $time; # This is the OO localtime. my @localtime = CORE::localtime $time; # This is the localtime function