xmlgraphics-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 53327] [PATCH] DoubleFormatUtil does not work with huge precision
Date Sat, 02 Jun 2012 20:22:18 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=53327

--- Comment #4 from Glenn Adams <gadams@apache.org> ---
(In reply to comment #3)
> Thanks Glenn for applying the patch, everything seems fine after review.
> I'm closing the bug.

I encountered a failure when running junit on XGC today as follows:

Testcase: testAllDoubleRanges took 4.477 sec
        FAILED
value: 5.22534294505995E-4, decimals: 17, precision: 17
expected:<0.00052253429450[6]> but was:<0.00052253429450[599]>
junit.framework.ComparisonFailure: value: 5.22534294505995E-4, decimals: 17,
precision: 17 expected:<0.00052253429450[6]> but was:<0.00052253429450[599]>
        at
org.apache.xmlgraphics.util.DoubleFormatUtilTest.assertEquals(DoubleFormatUtilTest.java:223)
        at
org.apache.xmlgraphics.util.DoubleFormatUtilTest.testAllDoubleRanges(DoubleFormatUtilTest.java:531)

However, on a re-attempt, it did not fail. Perhaps this is because you use
random numbers in your test data.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: general-help@xmlgraphics.apache.org


Mime
View raw message