in reply to Re: Unexpected behaviour with PERL5OPT
in thread Unexpected behaviour with PERL5OPT
So I've patched Test/Builder.pm to be (eg) capable of providing:>perl -MTest::More -le "cmp_ok(0.1 ** 2, '==', 0.01, 'T1'); done_testi +ng();" not ok 1 - T1 # Failed test 'T1' # at -e line 1. # got: 0.01 # expected: 0.01 1..1 # Looks like you failed 1 test of 1.
I'll submit a PR when (if) I get the detail of involving Math::Ryu reliably sorted out.>perl -MMath::Ryu -MTest::More -le "cmp_ok(0.1 ** 2, '==', 0.01, 'T1') +; done_testing();" not ok 1 - T1 # Failed test 'T1' # at -e line 1. # got: 0.010000000000000002 # expected: 0.01 1..1 # Looks like you failed 1 test of 1.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Unexpected behaviour with PERL5OPT
by choroba (Cardinal) on Oct 25, 2024 at 07:25 UTC | |
by syphilis (Archbishop) on Oct 25, 2024 at 09:43 UTC | |
by choroba (Cardinal) on Oct 25, 2024 at 10:05 UTC | |
by syphilis (Archbishop) on Oct 25, 2024 at 12:27 UTC | |
by syphilis (Archbishop) on Oct 29, 2024 at 11:23 UTC |