On 2/24/15 12:56 PM, Thomas Neidhart wrote: Interesting. I could not get this to happen on
OSX: java version "1.7.0_71" Java(TM) SE Runtime Environment (build 1.7.0_71-b14) Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode) java version "1.8.0_11" Java(TM) SE Runtime Environment (build 1.8.0_11-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.11-b03, mixed mode) Ubuntu: java version "1.7.0_21" Java(TM) SE Runtime Environment (build 1.7.0_21-b11) Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode) FastMath tests from master all run clean for me using JDKs above. Phil > Hi, > > after switching to Java 1.7 there seems to be another problem with > FastMath, see the two test failures below when running on jenkins. > > Can somebody reproduce it on a 64 bit machine (I just have a 32 bit > laptop at home)? > > Test setup: Java 7 latest (1.7.0_75?), maven 3.1.1. > > Tests run: 65, Failures: 1, Errors: 0, Skipped: 1, Time elapsed: 13.332 > sec <<< FAILURE! - in org.apache.commons.math4.util.FastMathTest > testPowSpecialCases(org.apache.commons.math4.util.FastMathTest) Time > elapsed: 0.007 sec <<< FAILURE! > java.lang.AssertionError: pow(0.5, Infinity) should be 0.0 > expected:<0.0> but was:<Infinity> > at org.junit.Assert.fail(Assert.java:88) > at org.junit.Assert.failNotEquals(Assert.java:743) > at org.junit.Assert.assertEquals(Assert.java:494) > at > org.apache.commons.math4.util.FastMathTest.testPowSpecialCases(FastMathTest.java:372) > > Running org.apache.commons.math4.util.FastMathStrictComparisonTest > Tests run: 53, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.037 > sec <<< FAILURE! - in > org.apache.commons.math4.util.FastMathStrictComparisonTest > test1[37](org.apache.commons.math4.util.FastMathStrictComparisonTest) > Time elapsed: 0 sec <<< FAILURE! > java.lang.AssertionError: double pow(-0.0, NaN) expected NaN actual > -Infinity entries [1, 3] > at org.junit.Assert.fail(Assert.java:88) > at > org.apache.commons.math4.util.FastMathStrictComparisonTest.reportFailedResults(FastMathStrictComparisonTest.java:158) > at > org.apache.commons.math4.util.FastMathStrictComparisonTest.callMethods(FastMathStrictComparisonTest.java:182) > at > org.apache.commons.math4.util.FastMathStrictComparisonTest.setupMethodCall(FastMathStrictComparisonTest.java:204) > at > org.apache.commons.math4.util.FastMathStrictComparisonTest.test1(FastMathStrictComparisonTest.java:92) > > Thomas > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
