Explorar el Código

add more test for #252

Tao Wen hace 7 años
padre
commit
51dd70305b
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  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 {