@@ -62,6 +62,12 @@ func TestNativeTypes(t *testing.T) {
62
62
NestedMapVal: {42: true},
63
63
},
64
64
],
65
+ ArrayVal: [
66
+ ext.TestNestedType{
67
+ NestedListVal:['goodbye', 'cruel', 'world'],
68
+ NestedMapVal: {42: true},
69
+ },
70
+ ],
65
71
MapVal: {'map-key': ext.TestAllTypes{BoolVal: true}},
66
72
CustomSliceVal: [ext.TestNestedSliceType{Value: 'none'}],
67
73
CustomMapVal: {'even': ext.TestMapVal{Value: 'more'}},
@@ -85,6 +91,10 @@ func TestNativeTypes(t *testing.T) {
85
91
NestedMapVal : map [int64 ]bool {42 : true },
86
92
},
87
93
},
94
+ ArrayVal : [1 ]* TestNestedType {{
95
+ NestedListVal : []string {"goodbye" , "cruel" , "world" },
96
+ NestedMapVal : map [int64 ]bool {42 : true },
97
+ }},
88
98
MapVal : map [string ]TestAllTypes {"map-key" : {BoolVal : true }},
89
99
CustomSliceVal : []TestNestedSliceType {{Value : "none" }},
90
100
CustomMapVal : map [string ]TestMapVal {"even" : {Value : "more" }},
@@ -688,6 +698,7 @@ type TestAllTypes struct {
688
698
Uint32Val uint32
689
699
Uint64Val uint64
690
700
ListVal []* TestNestedType
701
+ ArrayVal [1 ]* TestNestedType
691
702
MapVal map [string ]TestAllTypes
692
703
PbVal * proto3pb.TestAllTypes
693
704
CustomSliceVal []TestNestedSliceType
0 commit comments