...
1testfp.txt contains conversion tests from Vern Paxson's paper
2“A Program for Testing IEEE Decimal-Binary Conversion”
3https://www.icir.org/vern/papers/testbase-report.pdf
4
5That paper from 1991 describes a tester called 'testbase',
6written in non-64-bit-safe pre-ANSI C.
7As of 2025, it is still available at ftp://ftp.ee.lbl.gov/testbase.tar.Z.
8
9The files
10
11 https://swtch.com/testbase/atof.txt
12 https://swtch.com/testbase/ftoa.txt
13
14are the test inputs that testbase generates and checks,
15logged during an actual run, totaling about 10 MB.
16
17The files atof1k.txt and ftoa1k.txt in this directory each contain
181000 random samples of the full trace. They are used during
19'go test internal/strconv'.
20
21Running 'go test internal/strconv -testbase' downloads the
22complete files into this directory as atof.txt and ftoa.txt and
23then uses those instead of the sampled versions.
24The complete tests take about 10 seconds on a Macbook Pro.
25
26Backup copies of the files are also posted at
27https://gist.github.com/rsc/606b378b0bf95c24a6fd6cef99e262e1.
View as plain text