number_test.go 345 B

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