mirror of https://github.com/apache/lucene.git
Added "human readable" output to the failing test.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1544504 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7b9ca4745a
commit
95b973d613
|
@ -226,7 +226,9 @@ public class NoFacetTest extends AbstractAnalyticsStatsTest {
|
||||||
Double floatTest = (Double)calculateNumberStat(floatTestStart, "stddev");
|
Double floatTest = (Double)calculateNumberStat(floatTestStart, "stddev");
|
||||||
assertTrue("Oops: (double raws) " + Double.doubleToRawLongBits(floatResult) + " - "
|
assertTrue("Oops: (double raws) " + Double.doubleToRawLongBits(floatResult) + " - "
|
||||||
+ Double.doubleToRawLongBits(floatTest) + " < " + Double.doubleToRawLongBits(.00000000001) +
|
+ Double.doubleToRawLongBits(floatTest) + " < " + Double.doubleToRawLongBits(.00000000001) +
|
||||||
" Calculated diff " + Double.doubleToRawLongBits(floatResult - floatTest),
|
" Calculated diff " + Double.doubleToRawLongBits(floatResult - floatTest)
|
||||||
|
+ " Let's see what the JVM thinks these bits are. FloatResult: " + floatResult.toString() +
|
||||||
|
" floatTest: " + floatTest.toString() + " Diff " + Double.toString(floatResult - floatTest),
|
||||||
Math.abs(floatResult - floatTest) < .00000000001);
|
Math.abs(floatResult - floatTest) < .00000000001);
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue