Subject: | Test t/integer.t fails on 5.17 and later |
I believe this patch fixes the CPAN tester fails on Perls 5.17 and later. Refer to the perl5180delta for qw:
http://perldoc.perl.org/perl5180delta.html#qw%28...%29-can-no-longer-be-used-as-parentheses
Subject: | diff-u.txt |
--- ../Test-Numeric-0.3.orig/t/integer.t 2004-12-16 12:48:55.000000000 -0500
+++ t/integer.t 2015-08-03 12:03:40.000000000 -0400
@@ -8,13 +8,13 @@
use Test::Numeric;
# is_integer
-foreach my $val qw( -3 0 1 100 1.00 ) {
+foreach my $val (qw( -3 0 1 100 1.00 )) {
ok( Test::Numeric::_test_integer($val), "_test_integer( $val )" )
|| diag "Failed test with '$val'";
is_integer $val;
}
-foreach my $val qw( -3.1 0.3 1.001 100.123 ) {
+foreach my $val (qw( -3.1 0.3 1.001 100.123 )) {
ok( !Test::Numeric::_test_integer($val), "_test_integer( $val )" )
|| diag "Failed test with '$val'";
isnt_integer $val;