Skip to content

Commit e1737cb

Browse files
committed
review: match fail msg with params
1 parent 1f848ad commit e1737cb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎assert/assertions.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,19 +1189,19 @@ func NotElementsMatch(t TestingT, listA, listB interface{}, msgAndArgs ...interf
11891189
h.Helper()
11901190
}
11911191
if isEmpty(listA) && isEmpty(listB) {
1192-
return Fail(t, "A and B are the same", msgAndArgs)
1192+
return Fail(t, "listA and listB contain the same elements", msgAndArgs)
11931193
}
11941194

11951195
if !isList(t, listA, msgAndArgs...) {
1196-
return Fail(t, "A is not a list", msgAndArgs...)
1196+
return Fail(t, "listA is not a list type", msgAndArgs...)
11971197
}
11981198
if !isList(t, listB, msgAndArgs...) {
1199-
return Fail(t, "B is not a list", msgAndArgs...)
1199+
return Fail(t, "listB is not a list type", msgAndArgs...)
12001200
}
12011201

12021202
extraA, extraB := diffLists(listA, listB)
12031203
if len(extraA) == 0 && len(extraB) == 0 {
1204-
return Fail(t, "A and B are the same", msgAndArgs)
1204+
return Fail(t, "listA and listB contain the same elements", msgAndArgs)
12051205
}
12061206

12071207
return true

0 commit comments

Comments
 (0)