Text file src/internal/strconv/testdata/README

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

View as plain text