harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From py...@apache.org
Subject svn commit: r442527 - /incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/MathTest.java
Date Tue, 12 Sep 2006 08:51:25 GMT
Author: pyang
Date: Tue Sep 12 01:51:24 2006
New Revision: 442527

URL: http://svn.apache.org/viewvc?view=rev&rev=442527
Log:
Recover part of update introduced by r442438 to make test pass.

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/MathTest.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/MathTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/MathTest.java?view=diff&rev=442527&r1=442526&r2=442527
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/MathTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/MathTest.java
Tue Sep 12 01:51:24 2006
@@ -275,9 +275,9 @@
                 Double.POSITIVE_INFINITY, Math.hypot(Double.NEGATIVE_INFINITY,
                         Double.POSITIVE_INFINITY), 0D);
         assertEquals("Should return NaN", Double.NaN, Math.hypot(Double.NaN,
-                2342301.89843), 0D);
+                2342301.89843));
         assertEquals("Should return NaN", Double.NaN, Math.hypot(-345.2680,
-                Double.NaN), 0D);
+                Double.NaN));
 
         assertEquals("Should return 2396424.905416697", 2396424.905416697, Math
                 .hypot(12322.12, -2396393.2258), 0D);
@@ -320,7 +320,7 @@
     public void test_log1p_D() {
         // Test for special cases
         assertTrue("Should return NaN", Double.isNaN(Math.log1p(Double.NaN)));
-        assertEquals("Should return NaN", Double.NaN, Math.log1p(-32.0482175), 0D);
+        assertEquals("Should return NaN", Double.NaN, Math.log1p(-32.0482175));
         assertEquals("Should return POSITIVE_INFINITY",
                 Double.POSITIVE_INFINITY, Math.log1p(Double.POSITIVE_INFINITY), 0D);
         assertEquals("Should return 0.0", 0.0, Math.log1p(0.0), 0D);



Mime
View raw message