From ce06bdb16a64dd39a8ebbb2e5a53b33520b00bb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Sun, 23 Dec 2018 21:08:12 +0100 Subject: Rename CSV option from comma to delimiter See #5555 --- tpl/transform/unmarshal_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tpl/transform/unmarshal_test.go') diff --git a/tpl/transform/unmarshal_test.go b/tpl/transform/unmarshal_test.go index b1ce30b1f..d9ebd1f89 100644 --- a/tpl/transform/unmarshal_test.go +++ b/tpl/transform/unmarshal_test.go @@ -118,7 +118,7 @@ func TestUnmarshal(t *testing.T) { assert.Equal(5, len(first)) assert.Equal("Ford", first[1]) }}, - {testContentResource{key: "r1", content: `a;b;c`, mime: media.CSVType}, map[string]interface{}{"comma": ";"}, func(r [][]string) { + {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"}}) }}, @@ -126,13 +126,13 @@ func TestUnmarshal(t *testing.T) { assert.Equal(r, [][]string{[]string{"a", "b", "c"}}) }}, - {"a;b;c", map[string]interface{}{"comma": ";"}, func(r [][]string) { + {"a;b;c", map[string]interface{}{"delimiter": ";"}, func(r [][]string) { assert.Equal(r, [][]string{[]string{"a", "b", "c"}}) }}, {testContentResource{key: "r1", content: ` % This is a comment -a;b;c`, mime: media.CSVType}, map[string]interface{}{"CommA": ";", "Comment": "%"}, func(r [][]string) { +a;b;c`, mime: media.CSVType}, map[string]interface{}{"DElimiter": ";", "Comment": "%"}, func(r [][]string) { assert.Equal(r, [][]string{[]string{"a", "b", "c"}}) }}, -- cgit v1.2.3