File: number_test.go

package info (click to toggle)
golang-github-json-iterator-go 1.1.12-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 916 kB
  • sloc: sh: 19; makefile: 3
file content (17 lines) | stat: -rw-r--r-- 345 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package test

import "encoding/json"

func init() {
	unmarshalCases = append(unmarshalCases, unmarshalCase{
		ptr:   (*json.Number)(nil),
		input: `"500"`,
	}, unmarshalCase{
		ptr:   (*json.Number)(nil),
		input: `1`,
	}, unmarshalCase{
		ptr:   (*json.Number)(nil),
		input: `null`,
	})
	marshalCases = append(marshalCases, json.Number(""))
}