Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-10-24 00:18:24 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-10-24 01:12:32 +0300
commit889aca054a267506a1c7cfaa3992d324764d6358 (patch)
tree78483e4755ea4a27d77acb1eacb4e66dac8b3b54 /tpl/collections
parente3ed4a83b8e92ce9bf070f7b41780798b006e848 (diff)
Run gofmt -s
Diffstat (limited to 'tpl/collections')
-rw-r--r--tpl/collections/collections_test.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/tpl/collections/collections_test.go b/tpl/collections/collections_test.go
index b3ac8a8f2..0edb8299f 100644
--- a/tpl/collections/collections_test.go
+++ b/tpl/collections/collections_test.go
@@ -100,16 +100,16 @@ func TestGroup(t *testing.T) {
items interface{}
expect interface{}
}{
- {"a", []*tstGrouper{&tstGrouper{}, &tstGrouper{}}, "a(2)"},
+ {"a", []*tstGrouper{{}, {}}, "a(2)"},
{"b", tstGroupers{&tstGrouper{}, &tstGrouper{}}, "b(2)"},
- {"a", []tstGrouper{tstGrouper{}, tstGrouper{}}, "a(2)"},
- {"a", []*tstGrouper2{&tstGrouper2{}, &tstGrouper2{}}, "a(2)"},
- {"b", []tstGrouper2{tstGrouper2{}, tstGrouper2{}}, "b(2)"},
+ {"a", []tstGrouper{{}, {}}, "a(2)"},
+ {"a", []*tstGrouper2{{}, {}}, "a(2)"},
+ {"b", []tstGrouper2{{}, {}}, "b(2)"},
{"a", []*tstGrouper{}, "a(0)"},
{"a", []string{"a", "b"}, false},
{"a", "asdf", false},
{"a", nil, false},
- {nil, []*tstGrouper{&tstGrouper{}, &tstGrouper{}}, false},
+ {nil, []*tstGrouper{{}, {}}, false},
} {
errMsg := fmt.Sprintf("[%d] %v", i, test)
@@ -654,7 +654,7 @@ func TestSlice(t *testing.T) {
{[]interface{}{}, []interface{}{}},
{[]interface{}{nil}, []interface{}{nil}},
{[]interface{}{5, "b"}, []interface{}{5, "b"}},
- {[]interface{}{tstNoStringer{}}, []tstNoStringer{tstNoStringer{}}},
+ {[]interface{}{tstNoStringer{}}, []tstNoStringer{{}}},
} {
errMsg := fmt.Sprintf("[%d] %v", i, test.args)