Document enforcement of the conjugate equality when not mandated by C99.
diff --git a/commons-numbers-complex/src/test/java/org/apache/commons/numbers/complex/CStandardTest.java b/commons-numbers-complex/src/test/java/org/apache/commons/numbers/complex/CStandardTest.java
index 374d565..e5e765f 100644
--- a/commons-numbers-complex/src/test/java/org/apache/commons/numbers/complex/CStandardTest.java
+++ b/commons-numbers-complex/src/test/java/org/apache/commons/numbers/complex/CStandardTest.java
@@ -246,7 +246,9 @@
* @param operation the operation
*/
private static void assertConjugateEquality(UnaryOperator<Complex> operation) {
- // Edge cases.
+ // Edge cases. Inf/NaN are specifically handled in the C99 test cases
+ // but are repeated here to enforce the conjugate equality even when the C99
+ // standard does not specify a sign. This may be revised in the future.
final double[] parts = {Double.NEGATIVE_INFINITY, -1, -0.0, 0.0, 1,
Double.POSITIVE_INFINITY, Double.NaN};
for (final double x : parts) {