]> Cypherpunks repositories - gostls13.git/commit
encoding/json: improve fidelity of TestUnmarshal for Numbers
authorJoe Tsai <joetsai@digital-static.net>
Wed, 8 Jan 2025 20:30:01 +0000 (12:30 -0800)
committerJoseph Tsai <joetsai@digital-static.net>
Wed, 8 Jan 2025 22:37:21 +0000 (14:37 -0800)
commit4225c6cb372e0fea7586dd646e991faa5df20671
tree4ec5a633e7c6576a6bd18ed0a7804af69a97bacc
parentc87a6f932efd3643c73f6b972da5500755048f85
encoding/json: improve fidelity of TestUnmarshal for Numbers

In particular, cover the behavior of unmarshaling a JSON string
into a Number type regardless of whether the `string` option
is specified or not.

Change-Id: Ibc55f16860442240bcfeea1fd51aaa76f7e50f67
Reviewed-on: https://go-review.googlesource.com/c/go/+/641416
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Joseph Tsai <joetsai@digital-static.net>
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/encoding/json/decode_test.go