aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/json/decode.go
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2020-05-08 12:13:11 -0700
committerRobert Griesemer <gri@golang.org>2020-05-08 20:34:23 +0000
commit65126c588e5c3ea73cd6721f831b01957f7ecbe0 (patch)
tree35d3712a5b6816997cc95ba4ee165e701ed13459 /src/encoding/json/decode.go
parent26de581a709428d55ffc38cc0dbc7ddfc96b9443 (diff)
downloadgo-65126c588e5c3ea73cd6721f831b01957f7ecbe0.tar.xz
strconv: fix ParseComplex for strings with separators
The recently added function parseFloatPrefix tested the entire string for correct placement of separators rather than just the consumed part. The 4-char fix is in readFloat (atof.go:303). Added more tests. Also added some white space for nicer grouping of the test cases. While at it, removed the need for calling testing.Run. Fixes #38962. Change-Id: Ifce84f362bb4ede559103f8d535556d3de9325f1 Reviewed-on: https://go-review.googlesource.com/c/go/+/233017 Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/encoding/json/decode.go')
0 files changed, 0 insertions, 0 deletions