@@ -62,6 +62,12 @@ func TestNativeTypes(t *testing.T) {
6262 NestedMapVal: {42: true},
6363 },
6464 ],
65+ ArrayVal: [
66+ ext.TestNestedType{
67+ NestedListVal:['goodbye', 'cruel', 'world'],
68+ NestedMapVal: {42: true},
69+ },
70+ ],
6571 MapVal: {'map-key': ext.TestAllTypes{BoolVal: true}},
6672 CustomSliceVal: [ext.TestNestedSliceType{Value: 'none'}],
6773 CustomMapVal: {'even': ext.TestMapVal{Value: 'more'}},
@@ -85,6 +91,10 @@ func TestNativeTypes(t *testing.T) {
8591 NestedMapVal : map [int64 ]bool {42 : true },
8692 },
8793 },
94+ ArrayVal : [1 ]* TestNestedType {{
95+ NestedListVal : []string {"goodbye" , "cruel" , "world" },
96+ NestedMapVal : map [int64 ]bool {42 : true },
97+ }},
8898 MapVal : map [string ]TestAllTypes {"map-key" : {BoolVal : true }},
8999 CustomSliceVal : []TestNestedSliceType {{Value : "none" }},
90100 CustomMapVal : map [string ]TestMapVal {"even" : {Value : "more" }},
@@ -688,6 +698,7 @@ type TestAllTypes struct {
688698 Uint32Val uint32
689699 Uint64Val uint64
690700 ListVal []* TestNestedType
701+ ArrayVal [1 ]* TestNestedType
691702 MapVal map [string ]TestAllTypes
692703 PbVal * proto3pb.TestAllTypes
693704 CustomSliceVal []TestNestedSliceType
0 commit comments