зеркало из https://github.com/mozilla/gecko-dev.git
Bug 968409 - Add assertNotEquals method; r=mcomella
This commit is contained in:
Родитель
a7ee4f58be
Коммит
27d7b66da1
|
@ -62,6 +62,18 @@ public final class AssertionHelper {
|
|||
sAsserter.is(actual, expected, message);
|
||||
}
|
||||
|
||||
public static void assertNotEquals(final String message, final double unexpected, final double actual, final double delta) {
|
||||
sAsserter.ok(Math.abs(unexpected - actual) > delta, message, DIAG_STRING);
|
||||
}
|
||||
|
||||
public static void assertNotEquals(final String message, final long unexpected, final long actual) {
|
||||
sAsserter.isnot(actual, unexpected, message);
|
||||
}
|
||||
|
||||
public static void assertNotEquals(final String message, final Object unexpected, final Object actual) {
|
||||
sAsserter.isnot(actual, unexpected, message);
|
||||
}
|
||||
|
||||
public static void assertFalse(final String message, final boolean actual) {
|
||||
sAsserter.ok(!actual, message, DIAG_STRING);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче