commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject svn commit: r1165296 - /commons/proper/math/trunk/src/test/java/org/apache/commons/math/complex/ComplexTest.java
Date Mon, 05 Sep 2011 14:20:17 GMT
Author: erans
Date: Mon Sep  5 14:20:16 2011
New Revision: 1165296

URL: http://svn.apache.org/viewvc?rev=1165296&view=rev
Log:
Added a test.

Modified:
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/complex/ComplexTest.java

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/complex/ComplexTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/complex/ComplexTest.java?rev=1165296&r1=1165295&r2=1165296&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/complex/ComplexTest.java
(original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/complex/ComplexTest.java
Mon Sep  5 14:20:16 2011
@@ -316,6 +316,12 @@ public class ComplexTest {
     }
 
     @Test
+    public void testMultiplyInInf() {
+        // Assert.assertTrue(infInf.multiply(infInf).isNaN()); // MATH-620
+        Assert.assertTrue(infInf.multiply(infInf).isInfinite());
+    }
+
+    @Test
     public void testMultiplyNaNInf() {
         Complex z = new Complex(1,1);
         Complex w = z.multiply(infOne);



Mime
View raw message