From 915977b6e89a46feef3847eaf051049fa22bd32b Mon Sep 17 00:00:00 2001 From: Erick Erickson Date: Wed, 20 Nov 2013 12:09:24 +0000 Subject: [PATCH] Adding debug information to diagnose failure git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1543796 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/test/org/apache/solr/analytics/NoFacetTest.java | 8 +++++++- 1 file changed, 7 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 3c36db43582..94703d1b2f6 100644 --- a/solr/core/src/test/org/apache/solr/analytics/NoFacetTest.java +++ b/solr/core/src/test/org/apache/solr/analytics/NoFacetTest.java @@ -225,7 +225,13 @@ public class NoFacetTest extends AbstractAnalyticsStatsTest { Double floatResult = (Double)getStatResult(response, "str", "double", "float_fd"); Double floatTest = (Double)calculateNumberStat(floatTestStart, "stddev"); assertTrue(Math.abs(floatResult-floatTest)<.00000000001); - + + assertTrue("Oops: (double raws) " + Double.doubleToRawLongBits(floatResult) + " - " + + Double.doubleToRawLongBits(floatTest) + " < " + Double.doubleToRawLongBits(.00000000001) + + " Calculated diff " + Double.doubleToRawLongBits(floatResult - floatTest), + Math.abs(floatResult - floatTest) < .00000000001); + + //Double Double doubleResult = (Double)getStatResult(response, "str", "double", "double_dd"); Double doubleTest = (Double)calculateNumberStat(doubleTestStart, "stddev");