Added a test.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1165296 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gilles Sadowski 2011-09-05 14:20:16 +00:00
parent 701da0456a
commit bf4184310d
1 changed files with 6 additions and 0 deletions

View File

@ -315,6 +315,12 @@ public class ComplexTest {
Assert.assertSame(Complex.NaN, z);
}
@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);