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