@@ -34,29 +34,29 @@ func TestShowStruct(t *testing.T) {
34
34
testData := []showStructData {
35
35
{
36
36
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 " ,
38
38
},
39
39
{
40
40
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 " ,
42
42
},
43
43
{
44
44
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 " ,
46
46
},
47
47
{
48
48
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 " ,
50
50
},
51
51
{
52
52
input : testObject {Id : 11 , Person : testPerson {Properties : map [string ][]string {
53
53
"list" : {"one" , "two" , "three" },
54
54
}}},
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 " ,
56
56
},
57
57
{
58
58
input : testObject {Id : 11 , Name : "test" , Map : map [string ][]string {"left" : {"over" }}},
59
- output : " person:\n id: 11\n name: test\n left:\t over \n " ,
59
+ output : " person:\n \n id: 11\n name: test\n left: over \n \n " ,
60
60
},
61
61
}
62
62
0 commit comments