NotElementsMatch asserts that the specified listA(array, slice...) is NOT equal to specified listB(array, slice...) ignoring the order of the elements. If there are duplicate elements, the number of appearances of each of them in both lists should not match. This is an inverse of ElementsMatch. req
(t TestingT, listA interface{}, listB interface{}, msgAndArgs ...interface{})
| 1484 | // |
| 1485 | // require.NotElementsMatch(t, [1, 2, 3], [1, 2, 4]) -> true |
| 1486 | func NotElementsMatch(t TestingT, listA interface{}, listB interface{}, msgAndArgs ...interface{}) { |
| 1487 | if h, ok := t.(tHelper); ok { |
| 1488 | h.Helper() |
| 1489 | } |
| 1490 | if assert.NotElementsMatch(t, listA, listB, msgAndArgs...) { |
| 1491 | return |
| 1492 | } |
| 1493 | t.FailNow() |
| 1494 | } |
| 1495 | |
| 1496 | // NotElementsMatchf asserts that the specified listA(array, slice...) is NOT equal to specified |
| 1497 | // listB(array, slice...) ignoring the order of the elements. If there are duplicate elements, |
no test coverage detected