Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 193372 - dev-java/jump-0.5 fails a double value test
Summary: dev-java/jump-0.5 fails a double value test
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-21 23:20 UTC by William L. Thomson Jr. (RETIRED)
Modified: 2007-12-16 02:31 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
jump-0.5.patch (jump-0.5.patch,1.00 KB, patch)
2007-10-09 22:37 UTC, Pierre Colot
Details | Diff
jump-0.5.ebuild (jump-0.5.ebuild,1.14 KB, text/plain)
2007-10-09 22:39 UTC, Pierre Colot
Details

Note You need to log in before you can comment on or make changes to this bug.
Description William L. Thomson Jr. (RETIRED) gentoo-dev 2007-09-21 23:20:34 UTC
Per bug 190429 jump fails a single test

addFailure(testValueOf_double, expected:<4.9E-324> but was:<0.0>)

Went ahead and stabilized the package but still should be resolved at some point. :)
Comment 1 Pierre Colot 2007-10-09 22:16:31 UTC
NumberCentralTests line 233:


      assertEquals(Double.MIN_VALUE, NumberCentral.valueOf(Double.MIN_VALUE).doubleValue(), 0.0);

Fail because the conversions introduce a normal imprecision.

Proposed Correction:

Two values are equal if the separation is <= minimal value 

      assertEquals(Double.MIN_VALUE, NumberCentral.valueOf(Double.MIN_VALUE).doubleValue(), Double.MIN_VALUE);

-------------------------------------------------------
NumberCentralTests line 234:

      assertEquals(Double.MIN_VALUE, NumberCentral.valueOf(Double.MAX_VALUE).doubleValue(), 0.0);

Proposed Correction:

idem previous and typo correction to test MAX vs MAX and not MIN vs Max

      assertEquals(Double.MAX_VALUE, NumberCentral.valueOf(Double.MAX_VALUE).doubleValue(), Double.MIN_VALUE);

Comment 2 Pierre Colot 2007-10-09 22:37:37 UTC
Created attachment 133032 [details, diff]
jump-0.5.patch
Comment 3 Pierre Colot 2007-10-09 22:39:15 UTC
Created attachment 133034 [details]
jump-0.5.ebuild

add patch to apply previous proposed correction
Comment 4 Petteri Räty (RETIRED) gentoo-dev 2007-12-16 02:31:38 UTC
(In reply to comment #2)
> Created an attachment (id=133032) [edit]
> jump-0.5.patch
> 

Patch committed. Thanks for it. Sorry about the delay.