X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FTime%2Flocaltime.t;h=0b020fcf7b61caeffa1320eec3fde4cf0b4fb5ec;hb=fc003d4b0d731bb670adb07e168c683339ec57e7;hp=f300343ff8ff7cd11f890d6fe59a4dea0d16419b;hpb=461d5a49bcaf1bdc023edb10ef9b6c0606ec0131;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/Time/localtime.t b/lib/Time/localtime.t index f300343..0b020fc 100644 --- a/lib/Time/localtime.t +++ b/lib/Time/localtime.t @@ -9,10 +9,10 @@ BEGIN { my(@times, @methods); BEGIN { - @times = (-2**62, -2**50, -2**33, -2**31-1, -1, 0, 1, 2**31-1, 2**33, 2**50, 2**62, time); + @times = (-2**55, -2**50, -2**33, -2**31-1, -1, 0, 1, 2**31-1, 2**33, 2**50, 2**55, time); @methods = qw(sec min hour mday mon year wday yday isdst); - plan tests => (@times * @methods) + 1; + plan tests => (@times * (@methods + 1)) + 1; use_ok Time::localtime; } @@ -21,6 +21,7 @@ for my $time (@times) { my $localtime = localtime $time; # This is the OO localtime. my @localtime = CORE::localtime $time; # This is the localtime function + is @localtime, 9, "localtime($time)"; for my $method (@methods) { is $localtime->$method, shift @localtime, "localtime($time)->$method"; }