From 1325e114108136eea3fe77a4a270a2da7eff98e2 Mon Sep 17 00:00:00 2001 From: Sebb Date: Mon, 12 Jan 2015 19:38:40 +0000 Subject: [PATCH] Split into separate tests. Easier to determine which fails; also checks if subsequent ones are failing --- .../commons/math3/complex/ComplexTest.java | 30 ++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/src/test/java/org/apache/commons/math3/complex/ComplexTest.java b/src/test/java/org/apache/commons/math3/complex/ComplexTest.java index ee72de88f..8387b67d0 100644 --- a/src/test/java/org/apache/commons/math3/complex/ComplexTest.java +++ b/src/test/java/org/apache/commons/math3/complex/ComplexTest.java @@ -781,14 +781,42 @@ public class ComplexTest { } @Test - public void testExpInf() { + public void testExpInf1() { TestUtils.assertSame(Complex.NaN, oneInf.exp()); + } + + @Test + public void testExpInf2() { TestUtils.assertSame(Complex.NaN, oneNegInf.exp()); + } + + @Test + public void testExpInf3() { TestUtils.assertSame(infInf, infOne.exp()); + } + + @Test + public void testExpInf4() { TestUtils.assertSame(Complex.ZERO, negInfOne.exp()); + } + + @Test + public void testExpInf5() { TestUtils.assertSame(Complex.NaN, infInf.exp()); + } + + @Test + public void testExpInf6() { TestUtils.assertSame(Complex.NaN, infNegInf.exp()); + } + + @Test + public void testExpInf7() { TestUtils.assertSame(Complex.NaN, negInfInf.exp()); + } + + @Test + public void testExpInf8() { TestUtils.assertSame(Complex.NaN, negInfNegInf.exp()); }