diff options
Diffstat (limited to 'src/lib/strconv/ftoa_test.go')
-rw-r--r-- | src/lib/strconv/ftoa_test.go | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/lib/strconv/ftoa_test.go b/src/lib/strconv/ftoa_test.go index 309f02870..0f0baa514 100644 --- a/src/lib/strconv/ftoa_test.go +++ b/src/lib/strconv/ftoa_test.go @@ -5,6 +5,7 @@ package strconv import ( + "math"; "strconv"; "testing" ) @@ -89,11 +90,11 @@ var ftoatests = []ftoaTest { ftoaTest{ 100, 'x', -1, "%x" }, - ftoaTest{ sys.NaN(), 'g', -1, "NaN" }, - ftoaTest{ -sys.NaN(), 'g', -1, "NaN" }, - ftoaTest{ sys.Inf(0), 'g', -1, "+Inf" }, - ftoaTest{ sys.Inf(-1), 'g', -1, "-Inf" }, - ftoaTest{ -sys.Inf(0), 'g', -1, "-Inf" }, + ftoaTest{ math.NaN(), 'g', -1, "NaN" }, + ftoaTest{ -math.NaN(), 'g', -1, "NaN" }, + ftoaTest{ math.Inf(0), 'g', -1, "+Inf" }, + ftoaTest{ math.Inf(-1), 'g', -1, "-Inf" }, + ftoaTest{ -math.Inf(0), 'g', -1, "-Inf" }, ftoaTest{ -1, 'b', -1, "-4503599627370496p-52" }, } |