You've already forked json-iterator
mirror of
https://github.com/json-iterator/go.git
synced 2025-12-23 23:33:38 +02:00
consolidate mor tests
This commit is contained in:
20
value_tests/ptr_test.go
Normal file
20
value_tests/ptr_test.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package test
|
||||
|
||||
func init() {
|
||||
var pEFace = func(val interface{}) *interface{} {
|
||||
return &val
|
||||
}
|
||||
unmarshalCases = append(unmarshalCases, unmarshalCase{
|
||||
ptr: (**interface{})(nil),
|
||||
input: `"hello"`,
|
||||
}, unmarshalCase{
|
||||
ptr: (**interface{})(nil),
|
||||
input: `1e1`,
|
||||
}, unmarshalCase{
|
||||
ptr: (**interface{})(nil),
|
||||
input: `1.0e1`,
|
||||
})
|
||||
marshalCases = append(marshalCases,
|
||||
pEFace("hello"),
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user