浏览代码

explit test case sensitive for #252

Tao Wen 7 年之前
父节点
当前提交
4930b053b8
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. 10 0
      value_tests/struct_test.go

+ 10 - 0
value_tests/struct_test.go

@@ -78,6 +78,16 @@ func init() {
 			K string
 		})(nil),
 		input: `{"a":"1","b":"2","c":"3","d":"4","e":"5","f":"6","g":"7","h":"8","i":"9","j":"10","k":"11"}`,
+	}, unmarshalCase{
+		ptr: (*struct {
+			T float64 `json:"T"`
+		})(nil),
+		input: `{"t":10.0}`,
+	}, unmarshalCase{
+		ptr: (*struct {
+			T float64 `json:"T"`
+		})(nil),
+		input: `{"T":10.0}`,
 	})
 	marshalCases = append(marshalCases,
 		struct {