Added methods to TestUtils to test precision of Complex object related methods in ComplexUtils

This commit is contained in:
Eric Barnhill 2016-04-23 18:21:24 +02:00
parent ac37165ed7
commit a03d56a27c
1 changed files with 2 additions and 2 deletions

View File

@ -364,7 +364,7 @@ public class TestUtils {
Assert.fail(out.toString()); Assert.fail(out.toString());
} }
} }
/** verifies that two arrays are close (sup norm) */ /** verifies that two arrays are close (sup norm) */
public static void assertEquals(String msg, float[] expected, float[] observed, float tolerance) { public static void assertEquals(String msg, float[] expected, float[] observed, float tolerance) {
StringBuilder out = new StringBuilder(msg); StringBuilder out = new StringBuilder(msg);
@ -393,7 +393,7 @@ public class TestUtils {
Assert.fail(out.toString()); Assert.fail(out.toString());
} }
} }
/** verifies that two arrays are close (sup norm) */ /** verifies that two arrays are close (sup norm) */
public static void assertEquals(String msg, Complex[] expected, Complex[] observed, double tolerance) { public static void assertEquals(String msg, Complex[] expected, Complex[] observed, double tolerance) {
StringBuilder out = new StringBuilder(msg); StringBuilder out = new StringBuilder(msg);