Add case with different cap in slices in TestEqual.

This commit is contained in:
Rak Alexey 2020-03-29 09:27:59 +00:00 committed by Fedor Korotkiy
parent 7ae2676e14
commit ceaaff5cdb

View file

@ -25,6 +25,7 @@ func TestEqual(t *testing.T) {
{name: "uint64", expected: uint64(1), actual: uint64(1)},
{name: "string", expected: "1", actual: "1"},
{name: "slice", expected: []int{1, 2, 3}, actual: []int{1, 2, 3}},
{name: "makeSlice", expected: []int{0, 0, 0}, actual: make([]int, 3, 5)},
{name: "map", expected: map[string]string{"a": "b"}, actual: map[string]string{"a": "b"}},
{name: "bytes", expected: []byte(`abc`), actual: []byte(`abc`)},
} {