lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject svn commit: r1544504 - /lucene/dev/trunk/solr/core/src/test/org/apache/solr/analytics/NoFacetTest.java
Date Fri, 22 Nov 2013 12:08:02 GMT
Author: erick
Date: Fri Nov 22 12:08:01 2013
New Revision: 1544504

URL: http://svn.apache.org/r1544504
Log:
Added "human readable" output to the failing test.

Modified:
    lucene/dev/trunk/solr/core/src/test/org/apache/solr/analytics/NoFacetTest.java

Modified: lucene/dev/trunk/solr/core/src/test/org/apache/solr/analytics/NoFacetTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/test/org/apache/solr/analytics/NoFacetTest.java?rev=1544504&r1=1544503&r2=1544504&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/test/org/apache/solr/analytics/NoFacetTest.java (original)
+++ lucene/dev/trunk/solr/core/src/test/org/apache/solr/analytics/NoFacetTest.java Fri Nov
22 12:08:01 2013
@@ -226,7 +226,9 @@ public class NoFacetTest extends Abstrac
     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);
 
 



Mime
View raw message