Added methods to TestUtils to test precision of Complex object related methods in ComplexUtils
This commit is contained in:
parent
ac37165ed7
commit
a03d56a27c
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue