public void assertArrayEquals(final String message, final double[] expecteds, final double[] actuals, final double delta) throws ArrayComparisonFailure { new InexactComparisonCriteria(delta).arrayEquals(message, expecteds, actuals); }
public void assertArrayEquals(final String message, final float[] expecteds, final float[] actuals, final float delta) throws ArrayComparisonFailure { new InexactComparisonCriteria(delta).arrayEquals(message, expecteds, actuals); }
/** * Asserts that two double arrays are equal. If they are not, an * {@link AssertionError} is thrown with the given message. * * @param expecteds * double array with expected values. * @param actuals * double array with actual values * @param delta * the maximum delta between `expected` and `actual` * for which both numbers are still considered equal. * @param message * the identifying message for the {@link AssertionError} (`null` okay) * @param messageArgs * the failure message arguments */ public static void eq(double[] expecteds, double[] actuals, double delta, String message, Object ... messageArgs) throws ArrayComparisonFailure { new InexactComparisonCriteria(delta).arrayEquals(fmt(message, messageArgs), expecteds, actuals); }
/** * Asserts that two float arrays are equal. If they are not, an * {@link AssertionError} is thrown with the given message. * * @param expecteds * double array with expected values. * @param actuals * double array with actual values * @param delta * the maximum delta between `expected` and `actual` * for which both numbers are still considered equal. * @param message * the identifying message for the {@link AssertionError} (`null` okay) * @param messageArgs * the failure message arguments */ public static void eq(float[] expecteds, float[] actuals, float delta, String message, Object ... messageArgs) throws ArrayComparisonFailure { new InexactComparisonCriteria(delta).arrayEquals(fmt(message, messageArgs), expecteds, actuals); }
/** * Asserts that two double arrays are equal. If they are not, an * {@link AssertionError} is thrown with the given message. * * @param message the identifying message for the {@link AssertionError} (<code>null</code> * okay) * @param expecteds double array with expected values. * @param actuals double array with actual values * @param delta the maximum delta between <code>expecteds[i]</code> and * <code>actuals[i]</code> for which both numbers are still * considered equal. */ public static void assertArrayEquals(String message, double[] expecteds, double[] actuals, double delta) throws ArrayComparisonFailure { new InexactComparisonCriteria(delta).arrayEquals(message, expecteds, actuals); }
/** * Asserts that two float arrays are equal. If they are not, an * {@link AssertionError} is thrown with the given message. * * @param message the identifying message for the {@link AssertionError} (<code>null</code> * okay) * @param expecteds float array with expected values. * @param actuals float array with actual values * @param delta the maximum delta between <code>expecteds[i]</code> and * <code>actuals[i]</code> for which both numbers are still * considered equal. */ public static void assertArrayEquals(String message, float[] expecteds, float[] actuals, float delta) throws ArrayComparisonFailure { new InexactComparisonCriteria(delta).arrayEquals(message, expecteds, actuals); }
/** * Asserts that two double arrays are equal. If they are not, an * {@link AssertionError} is thrown with the given message. * * @param message the identifying message for the {@link AssertionError} (<code>null</code> * okay) * @param expecteds double array with expected values. * @param actuals double array with actual values */ public static void assertArrayEquals(String message, double[] expecteds, double[] actuals, double delta) throws ArrayComparisonFailure { new InexactComparisonCriteria(delta).arrayEquals(message, expecteds, actuals); }
/** * Asserts that two float arrays are equal. If they are not, an * {@link AssertionError} is thrown with the given message. * * @param message the identifying message for the {@link AssertionError} (<code>null</code> * okay) * @param expecteds float array with expected values. * @param actuals float array with actual values */ public static void assertArrayEquals(String message, float[] expecteds, float[] actuals, float delta) throws ArrayComparisonFailure { new InexactComparisonCriteria(delta).arrayEquals(message, expecteds, actuals); }