From 95b973d613f949117392fd5d7575be2840df2c82 Mon Sep 17 00:00:00 2001 From: Erick Erickson Date: Fri, 22 Nov 2013 12:08:01 +0000 Subject: [PATCH] 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 --- solr/core/src/test/org/apache/solr/analytics/NoFacetTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/solr/core/src/test/org/apache/solr/analytics/NoFacetTest.java b/solr/core/src/test/org/apache/solr/analytics/NoFacetTest.java index 992edc9c76d..f43303af74a 100644 --- a/solr/core/src/test/org/apache/solr/analytics/NoFacetTest.java +++ b/solr/core/src/test/org/apache/solr/analytics/NoFacetTest.java @@ -226,7 +226,9 @@ public class NoFacetTest extends AbstractAnalyticsStatsTest { Double floatTest = (Double)calculateNumberStat(floatTestStart, "stddev"); assertTrue("Oops: (double raws) " + Double.doubleToRawLongBits(floatResult) + " - " + 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);