Perlito5-9.022-0 $ prove -vwb t/number_string.t
:
ok 14 - start with 0 + noise
not ok 15 - overflow to Inf
:
ok 16 - malformed exponent
ok 17 - malformed exponent
Argument "1acmfd" isn't numeric in numeric ne (!=) at t/number_string.t line 21.
Argument "67000acmfd" isn't numeric in numeric ne (!=) at t/number_string.t line 23.
Argument "0acmfd" isn't numeric in numeric ne (!=) at t/number_string.t line 25.
Argument "1.5acmfd" isn't numeric in numeric ne (!=) at t/number_string.t line 28.
Argument "-1acmfd" isn't numeric in numeric ne (!=) at t/number_string.t line 30.
Argument "-1.5acmfd" isn't numeric in numeric ne (!=) at t/number_string.t line 32.
Argument "033e4-1652-4" isn't numeric in numeric ne (!=) at t/number_string.t line 38.
Argument "033e4054-1652-4" isn't numeric in numeric ne (!=) at t/number_string.t line 41.
Argument "547137e" isn't numeric in numeric ne (!=) at t/number_string.t line 44.
Argument "547137e-x" isn't numeric in numeric ne (!=) at t/number_string.t line 46.
Failed 1/17 subtests
Test Summary Report
-------------------
t/number_string.t (Wstat: 0 Tests: 17 Failed: 1)
Failed test: 15
Files=1, Tests=17, 0 wallclock secs ( 0.03 usr + 0.00 sys = 0.03 CPU)
Result: FAIL
I fixed that by adding a 9
print "not " if "033e40549-1652-4" != "Inf";
say "ok 15 - overflow to Inf";
I fixed that by adding a 9
PASS