From 52c74cd9c8df9eadc4285eefb009b9fae7bb90fd Mon Sep 17 00:00:00 2001 From: Fred Date: Tue, 30 Jun 2020 23:03:33 +0100 Subject: [PATCH] change expected structure in unit tests --- config/show_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/config/show_test.go b/config/show_test.go index bace2cc2..973a2ee7 100644 --- a/config/show_test.go +++ b/config/show_test.go @@ -34,29 +34,29 @@ func TestShowStruct(t *testing.T) { testData := []showStructData{ { input: testObject{Id: 11, Name: "test"}, - output: " person:\n id: 11\n name: test\n", + output: " person:\n\n id: 11\n name: test\n\n", }, { input: testObject{Id: 11, Person: testPerson{Name: "test"}}, - output: " person:\n name: test\n id: 11\n", + output: " person:\n name: test\n\n id: 11\n\n", }, { input: testObject{Id: 11, Person: testPerson{Name: "test", IsValid: true}}, - output: " person:\n name: test\n valid: true\n id: 11\n", + output: " person:\n name: test\n valid: true\n\n id: 11\n\n", }, { input: testObject{Id: 11, Pointer: &testPointer{IsValid: true}}, - output: " person:\n pointer:\n valid: true\n id: 11\n", + output: " person:\n\n pointer:\n valid: true\n\n id: 11\n\n", }, { input: testObject{Id: 11, Person: testPerson{Properties: map[string][]string{ "list": {"one", "two", "three"}, }}}, - output: " person:\n properties:\n list: one, two, three\n id: 11\n", + output: " person:\n properties:\n list: one, two, three\n\n\n id: 11\n\n", }, { input: testObject{Id: 11, Name: "test", Map: map[string][]string{"left": {"over"}}}, - output: " person:\n id: 11\n name: test\n left:\tover\n", + output: " person:\n\n id: 11\n name: test\n left: over\n\n", }, }