go/src/strconv
Robert Griesemer 65126c588e 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>
2020-05-08 20:34:23 +00:00
..
testdata
atob.go
atob_test.go
atoc.go strconv: add ParseComplex and FormatComplex 2020-05-08 17:31:38 +00:00
atoc_test.go strconv: fix ParseComplex for strings with separators 2020-05-08 20:34:23 +00:00
atof.go strconv: fix ParseComplex for strings with separators 2020-05-08 20:34:23 +00:00
atof_test.go strconv: fix ParseComplex for strings with separators 2020-05-08 20:34:23 +00:00
atoi.go strconv: add ParseComplex and FormatComplex 2020-05-08 17:31:38 +00:00
atoi_test.go
ctoa.go strconv: add ParseComplex and FormatComplex 2020-05-08 17:31:38 +00:00
decimal.go
decimal_test.go
doc.go
example_test.go strconv: reformat and tidy comments in example 2019-11-11 19:56:33 +00:00
export_test.go
extfloat.go strconv: add comment re extFloat errorscale 2020-04-11 23:08:34 +00:00
fp_test.go
ftoa.go
ftoa_test.go
internal_test.go strconv: implement parseFloatPrefix returning no. of bytes consumed 2020-04-30 03:50:03 +00:00
isprint.go
itoa.go
itoa_test.go
makeisprint.go
quote.go strconv: stop describing Unicode graphic characters as non-ASCII 2020-01-26 20:38:34 +00:00
quote_test.go all: avoid string(i) where i has type int 2020-02-26 04:38:19 +00:00
strconv_test.go