12 @times = (-2**55, -2**50, -2**33, -2**31-1, -1, 0, 1, 2**31-1, 2**33, 2**50, 2**55, time);
13 @methods = qw(sec min hour mday mon year wday yday isdst);
15 plan tests => (@times * (@methods + 1)) + 1;
17 use_ok Time::localtime;
20 for my $time (@times) {
21 my $localtime = localtime $time; # This is the OO localtime.
22 my @localtime = CORE::localtime $time; # This is the localtime function
24 is @localtime, 9, "localtime($time)";
25 for my $method (@methods) {
26 is $localtime->$method, shift @localtime, "localtime($time)->$method";