fn assert_ne
Fails the test unless left != right; the message shows the value.
Example:
test "different values" {
assert_ne(1 + 1, 3)
}pub(api) fn assert_ne<T: Eq>(left: &T, right: &T)С версии. 1.0.0-beta
Параметры
| Имя | Тип |
|---|---|
left | &T |
right | &T |
Ошибки
panics (the test fails) with the value when both are equal.
Эффекты
не объявлены (чистая, пока тело не говорит иное)
Определено в: std/core/testing.oxl:33