diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2024-01-28 22:34:10 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2024-01-28 23:14:09 +0100 |
commit | a795acbcd8b18aa4af384d5c03f30740361c8fcf (patch) | |
tree | 0dbf7b000681a738b892c5235daf52c63cda88b9 /common/collections/append_test.go | |
parent | 982d9513e71b3d48e20cfa38454a0e1215a8d963 (diff) |
all: Run gofumpt -l -w .
Diffstat (limited to 'common/collections/append_test.go')
-rw-r--r-- | common/collections/append_test.go | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/common/collections/append_test.go b/common/collections/append_test.go index 3c2aab2db..f791b731a 100644 --- a/common/collections/append_test.go +++ b/common/collections/append_test.go @@ -55,7 +55,7 @@ func TestAppend(t *testing.T) { []any{&tstSlicerIn1{"c"}}, testSlicerInterfaces{&tstSlicerIn1{"a"}, &tstSlicerIn1{"b"}, &tstSlicerIn1{"c"}}, }, - //https://github.com/gohugoio/hugo/issues/5361 + // https://github.com/gohugoio/hugo/issues/5361 { []string{"a", "b"}, []any{tstSlicers{&tstSlicer{"a"}, &tstSlicer{"b"}}}, @@ -102,14 +102,16 @@ func TestAppendToMultiDimensionalSlice(t *testing.T) { from []any expected any }{ - {[][]string{{"a", "b"}}, + { + [][]string{{"a", "b"}}, []any{[]string{"c", "d"}}, [][]string{ {"a", "b"}, {"c", "d"}, }, }, - {[][]string{{"a", "b"}}, + { + [][]string{{"a", "b"}}, []any{[]string{"c", "d"}, []string{"e", "f"}}, [][]string{ {"a", "b"}, @@ -117,7 +119,8 @@ func TestAppendToMultiDimensionalSlice(t *testing.T) { {"e", "f"}, }, }, - {[][]string{{"a", "b"}}, + { + [][]string{{"a", "b"}}, []any{[]int{1, 2}}, false, }, @@ -130,7 +133,6 @@ func TestAppendToMultiDimensionalSlice(t *testing.T) { c.Assert(result, qt.DeepEquals, test.expected) } } - } func TestAppendShouldMakeACopyOfTheInputSlice(t *testing.T) { |