You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2019/12/24 22:31:12 UTC

[commons-numbers] 04/09: Change unspecified sign exception message.

This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-numbers.git

commit c193ff715e0f095841b944c328a54c1486bf668b
Author: Alex Herbert <ah...@apache.org>
AuthorDate: Mon Dec 23 22:35:52 2019 +0000

    Change unspecified sign exception message.
---
 .../test/java/org/apache/commons/numbers/complex/CStandardTest.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

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 293b478..24cbd67 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
@@ -290,7 +290,7 @@ public class CStandardTest {
         if (!equals(t1.getReal(), t2.getReal()) ||
             !equals(t1.getImaginary(), t2.getImaginary())) {
             Assertions.fail(
-                String.format("Conjugate equality failed (z=%s). Expected: %s but was: %s (Sign specification = %s)",
+                String.format("Conjugate equality failed (z=%s). Expected: %s but was: %s (Unspecified sign = %s)",
                               z, c1, c2, sign));
         }
     }
@@ -364,7 +364,7 @@ public class CStandardTest {
         if (!equals(t1.getReal(), t2.getReal()) ||
             !equals(t1.getImaginary(), t2.getImaginary())) {
             Assertions.fail(
-                String.format("%s equality failed (z=%s, -z=%s). Expected: %s but was: %s (Sign specification = %s)",
+                String.format("%s equality failed (z=%s, -z=%s). Expected: %s but was: %s (Unspecified sign = %s)",
                               type, z, z.negate(), c1, c2, sign));
             new Exception().printStackTrace();
         }
@@ -479,7 +479,7 @@ public class CStandardTest {
         if (!equals(t1.getReal(), t2.getReal()) ||
             !equals(t1.getImaginary(), t2.getImaginary())) {
             Assertions.fail(
-                String.format("Operation failed (z=%s). Expected: %s but was: %s (Sign specification = %s)",
+                String.format("Operation failed (z=%s). Expected: %s but was: %s (Unspecified sign = %s)",
                               z, expected, c, sign));
         }