From ceaaff5cdbe4bd0da943cbb874188a3a15e05996 Mon Sep 17 00:00:00 2001 From: Rak Alexey Date: Sun, 29 Mar 2020 09:27:59 +0000 Subject: [PATCH] Add case with different cap in slices in TestEqual. --- testequal/assertions_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/testequal/assertions_test.go b/testequal/assertions_test.go index 74d80cd..7c5c8d1 100644 --- a/testequal/assertions_test.go +++ b/testequal/assertions_test.go @@ -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`)}, } {