Use require/assert.Empty instead of require/assert.Len(t, X, 0) (#13413)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
fdd1ae974f
Коммит
b3e49ec45c
@@ -23,7 +23,7 @@ func TestStringArrayIntersection(t *testing.T) {
|
||||
"def",
|
||||
}
|
||||
|
||||
assert.Len(t, StringArrayIntersection(a, b), 0)
|
||||
assert.Empty(t, StringArrayIntersection(a, b))
|
||||
assert.Len(t, StringArrayIntersection(a, c), 1)
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user