NotEqualValues asserts that two objects are not equal even when converted to the same type assert.NotEqualValues(t, obj1, obj2)
(t TestingT, expected, actual interface{}, msgAndArgs ...interface{})
| 899 | // |
| 900 | // assert.NotEqualValues(t, obj1, obj2) |
| 901 | func NotEqualValues(t TestingT, expected, actual interface{}, msgAndArgs ...interface{}) bool { |
| 902 | if h, ok := t.(tHelper); ok { |
| 903 | h.Helper() |
| 904 | } |
| 905 | |
| 906 | if ObjectsAreEqualValues(expected, actual) { |
| 907 | return Fail(t, fmt.Sprintf("Should not be: %#v\n", actual), msgAndArgs...) |
| 908 | } |
| 909 | |
| 910 | return true |
| 911 | } |
| 912 | |
| 913 | // containsElement try loop over the list check if the list includes the element. |
| 914 | // return (false, false) if impossible. |