[ 
https://issues.apache.org/jira/browse/SOLR-5488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13829283#comment-13829283
 ] 

Erick Erickson commented on SOLR-5488:
--------------------------------------

Houston:

Right, the original looked something like:

assertTrue(Math.abs(floatResult - floatTest) < .00000000001);

That doesn't give much data to go on though, so Dawid Weiss suggested something 
like this so we'd have some idea what the values were in their raw format. The 
test is the same, it just dumps a bunch more info out.:

    assertTrue("Oops: (double raws) " + Double.doubleToRawLongBits(floatResult) 
+ " - "
        + Double.doubleToRawLongBits(floatTest) + " < " + 
Double.doubleToRawLongBits(.00000000001) +
        " Calculated diff " + Double.doubleToRawLongBits(floatResult - 
floatTest),
        Math.abs(floatResult - floatTest) < .00000000001);


> Fix up test failures for Analytics Component
> --------------------------------------------
>
>                 Key: SOLR-5488
>                 URL: https://issues.apache.org/jira/browse/SOLR-5488
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 5.0, 4.7
>            Reporter: Erick Erickson
>            Assignee: Erick Erickson
>
> The analytics component has a few test failures, perhaps 
> environment-dependent. This is just to collect the test fixes in one place 
> for convenience when we merge back into 4.x



--
This message was sent by Atlassian JIRA
(v6.1#6144)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to