瀏覽代碼

add more test for #252

Tao Wen 7 年之前
父節點
當前提交
51dd70305b
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      value_tests/struct_test.go

+ 5 - 0
value_tests/struct_test.go

@@ -88,6 +88,11 @@ func init() {
 			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 {