Added methods to TestUtils to test precision of Complex object related methods in ComplexUtils
Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/a03d56a2 Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/a03d56a2 Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/a03d56a2 Branch: refs/heads/develop Commit: a03d56a27c5b4473fd50baac24fa62860330691f Parents: ac37165 Author: Eric Barnhill <ericbarnh...@protonmail.ch> Authored: Sat Apr 23 18:21:24 2016 +0200 Committer: Eric Barnhill <ericbarnh...@protonmail.ch> Committed: Sat Apr 23 18:21:24 2016 +0200 ---------------------------------------------------------------------- src/test/java/org/apache/commons/math4/TestUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-math/blob/a03d56a2/src/test/java/org/apache/commons/math4/TestUtils.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/TestUtils.java b/src/test/java/org/apache/commons/math4/TestUtils.java index 68a0138..5dde4e4 100644 --- a/src/test/java/org/apache/commons/math4/TestUtils.java +++ b/src/test/java/org/apache/commons/math4/TestUtils.java @@ -364,7 +364,7 @@ public class TestUtils { Assert.fail(out.toString()); } } - + /** verifies that two arrays are close (sup norm) */ public static void assertEquals(String msg, float[] expected, float[] observed, float tolerance) { StringBuilder out = new StringBuilder(msg); @@ -393,7 +393,7 @@ public class TestUtils { Assert.fail(out.toString()); } } - + /** verifies that two arrays are close (sup norm) */ public static void assertEquals(String msg, Complex[] expected, Complex[] observed, double tolerance) { StringBuilder out = new StringBuilder(msg);