|
|
@@ -120,6 +120,11 @@ opt_string: "谷歌"
|
|
|
OptBytes: []byte("\xe8\xb0\xb7\xe6\xad\x8c"),
|
|
|
OptString: scalar.String("谷歌"),
|
|
|
},
|
|
|
+ }, {
|
|
|
+ desc: "case sensitive",
|
|
|
+ inputMessage: &pb3.Scalars{},
|
|
|
+ inputText: `S_BOOL: true`,
|
|
|
+ wantErr: true,
|
|
|
}, {
|
|
|
desc: "proto3 scalars",
|
|
|
inputMessage: &pb3.Scalars{},
|
|
|
@@ -403,6 +408,11 @@ OptGroup: {}
|
|
|
OptNested: &pb2.Nested{},
|
|
|
Optgroup: &pb2.Nests_OptGroup{},
|
|
|
},
|
|
|
+ }, {
|
|
|
+ desc: "group field name",
|
|
|
+ inputMessage: &pb2.Nests{},
|
|
|
+ inputText: `optgroup: {}`,
|
|
|
+ wantErr: true,
|
|
|
}, {
|
|
|
desc: "proto2 nested messages",
|
|
|
inputMessage: &pb2.Nests{},
|