NotEqual asserts that the specified values are NOT equal. require.NotEqual(t, obj1, obj2) Pointer variable equality is determined based on the equality of the referenced values (as opposed to the memory addresses).
(t TestingT, expected interface{}, actual interface{}, msgAndArgs ...interface{})
| 1550 | // Pointer variable equality is determined based on the equality of the |
| 1551 | // referenced values (as opposed to the memory addresses). |
| 1552 | func NotEqual(t TestingT, expected interface{}, actual interface{}, msgAndArgs ...interface{}) { |
| 1553 | if h, ok := t.(tHelper); ok { |
| 1554 | h.Helper() |
| 1555 | } |
| 1556 | if assert.NotEqual(t, expected, actual, msgAndArgs...) { |
| 1557 | return |
| 1558 | } |
| 1559 | t.FailNow() |
| 1560 | } |
| 1561 | |
| 1562 | // NotEqualValues asserts that two objects are not equal even when converted to the same type |
| 1563 | // |