1
0
mirror of https://github.com/json-iterator/go.git synced 2025-08-07 21:52:55 +02:00

consolidate more tests

This commit is contained in:
Tao Wen
2018-02-14 08:58:59 +08:00
parent 658ff9ef15
commit a8708bca85
6 changed files with 54 additions and 108 deletions

View File

@@ -4,6 +4,9 @@ func init() {
var pEFace = func(val interface{}) *interface{} {
return &val
}
var pInt = func(val int) *int {
return &val
}
unmarshalCases = append(unmarshalCases, unmarshalCase{
ptr: (**interface{})(nil),
input: `"hello"`,
@@ -16,5 +19,7 @@ func init() {
})
marshalCases = append(marshalCases,
pEFace("hello"),
(*int)(nil),
pInt(100),
)
}
}