lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dawid Weiss <dawid.we...@cs.put.poznan.pl>
Subject Re: [JENKINS] Lucene-Solr-trunk-Linux (32bit/jdk1.8.0-ea-b114) - Build # 8390 - Failure!
Date Wed, 20 Nov 2013 11:30:53 GMT
> assertTrue(Math.abs(floatResult-floatTest)<.00000000001);

I would change this to:

assertTrue(Math.abs(floatResult-floatTest)<.00000000001 :
  "Oops: (double raws) " + Double.doubleToRawLongBits(floatResult) + "
- " + Double.doubleToRawLongBits(floatTest) + " < min.")

this should give you raw double representation from which you could
then diagnose the issue (reproduce locally for the same seed, compare
raw repr.).

Dawid

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message