Run gofmt -s

This commit is contained in:
Bjørn Erik Pedersen 2019-03-23 20:15:06 +01:00
parent 597e418cb0
commit d30e845485
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F
7 changed files with 19 additions and 19 deletions

View file

@ -119,21 +119,21 @@ func TestUnmarshal(t *testing.T) {
assert.Equal("Ford", first[1])
}},
{testContentResource{key: "r1", content: `a;b;c`, mime: media.CSVType}, map[string]interface{}{"delimiter": ";"}, func(r [][]string) {
assert.Equal(r, [][]string{[]string{"a", "b", "c"}})
assert.Equal(r, [][]string{{"a", "b", "c"}})
}},
{"a,b,c", nil, func(r [][]string) {
assert.Equal(r, [][]string{[]string{"a", "b", "c"}})
assert.Equal(r, [][]string{{"a", "b", "c"}})
}},
{"a;b;c", map[string]interface{}{"delimiter": ";"}, func(r [][]string) {
assert.Equal(r, [][]string{[]string{"a", "b", "c"}})
assert.Equal(r, [][]string{{"a", "b", "c"}})
}},
{testContentResource{key: "r1", content: `
% This is a comment
a;b;c`, mime: media.CSVType}, map[string]interface{}{"DElimiter": ";", "Comment": "%"}, func(r [][]string) {
assert.Equal(r, [][]string{[]string{"a", "b", "c"}})
assert.Equal(r, [][]string{{"a", "b", "c"}})
}},
// errors