This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
In t/op/arith.t, tryeq_sloppy() wasn't correctly handling negative values.
authorNicholas Clark <nick@ccl4.org>
Mon, 18 Jun 2012 19:49:39 +0000 (21:49 +0200)
committerNicholas Clark <nick@ccl4.org>
Tue, 19 Jun 2012 08:13:06 +0000 (10:13 +0200)
commit66d2c7cb575fb77aa0403c44521daff3e400f738
tree0c2b4806f39eeef64e3df6a9dfb91f0e689be86f
parentff49cf17e438aa22d1c89e69ab571eb90dca043c
In t/op/arith.t, tryeq_sloppy() wasn't correctly handling negative values.

The code was treating any negative value as "ok", rather than only those
within 1e-9 of the expected value. This bug has been present since
tryeq_sloppy() was added by commit 800e6488b45c59f1 in Oct 2001.
t/op/arith.t