require './test.pl';
}
-plan tests => 42;
+plan tests => 44;
($beguser,$begsys) = times;
like scalar localtime($time), $scalar, " scalar";
}
}
+
+# Test floating point args
+{
+ eval {
+ $SIG{__WARN__} = sub { die @_; };
+ localtime(1.23);
+ };
+ is($@, '', 'Ignore fractional time');
+ eval {
+ $SIG{__WARN__} = sub { die @_; };
+ gmtime(1.23);
+ };
+ is($@, '', 'Ignore fractional time');
+}