Overflow test for pow()
@@ -428,5 +428,9 @@ public class ComplexEdgeCaseTest {
assertComplex(1, nan, 1, 1, name, operation, nan, nan);
assertComplex(1, 1, nan, 1, name, operation, nan, nan);
assertComplex(1, 1, 1, nan, name, operation, nan, nan);
+
+ // Test overflow
+ assertComplex(Double.MAX_VALUE, 1, 2, 0, name, operation, inf, inf);
+ assertComplex(1, Double.MAX_VALUE, 2, 0, name, operation, -inf, inf);
}
}
