Skip to content

Commit 52c74cd

Browse files
change expected structure in unit tests
1 parent 85a5d59 commit 52c74cd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

config/show_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,29 +34,29 @@ func TestShowStruct(t *testing.T) {
3434
testData := []showStructData{
3535
{
3636
input: testObject{Id: 11, Name: "test"},
37-
output: " person:\n id: 11\n name: test\n",
37+
output: " person:\n\n id: 11\n name: test\n\n",
3838
},
3939
{
4040
input: testObject{Id: 11, Person: testPerson{Name: "test"}},
41-
output: " person:\n name: test\n id: 11\n",
41+
output: " person:\n name: test\n\n id: 11\n\n",
4242
},
4343
{
4444
input: testObject{Id: 11, Person: testPerson{Name: "test", IsValid: true}},
45-
output: " person:\n name: test\n valid: true\n id: 11\n",
45+
output: " person:\n name: test\n valid: true\n\n id: 11\n\n",
4646
},
4747
{
4848
input: testObject{Id: 11, Pointer: &testPointer{IsValid: true}},
49-
output: " person:\n pointer:\n valid: true\n id: 11\n",
49+
output: " person:\n\n pointer:\n valid: true\n\n id: 11\n\n",
5050
},
5151
{
5252
input: testObject{Id: 11, Person: testPerson{Properties: map[string][]string{
5353
"list": {"one", "two", "three"},
5454
}}},
55-
output: " person:\n properties:\n list: one, two, three\n id: 11\n",
55+
output: " person:\n properties:\n list: one, two, three\n\n\n id: 11\n\n",
5656
},
5757
{
5858
input: testObject{Id: 11, Name: "test", Map: map[string][]string{"left": {"over"}}},
59-
output: " person:\n id: 11\n name: test\n left:\tover\n",
59+
output: " person:\n\n id: 11\n name: test\n left: over\n\n",
6060
},
6161
}
6262

0 commit comments

Comments
 (0)