github.com/bingoohuang/gg@v0.0.0-20240325092523-45da7dee9335/pkg/jsoni/value_tests/number_test.go (about)

     1  package test
     2  
     3  import "encoding/json"
     4  
     5  func init() {
     6  	unmarshalCases = append(unmarshalCases, unmarshalCase{
     7  		ptr:   (*json.Number)(nil),
     8  		input: `"500"`,
     9  	}, unmarshalCase{
    10  		ptr:   (*json.Number)(nil),
    11  		input: `1`,
    12  	}, unmarshalCase{
    13  		ptr:   (*json.Number)(nil),
    14  		input: `null`,
    15  	})
    16  	marshalCases = append(marshalCases, json.Number(""))
    17  }