aboutsummaryrefslogtreecommitdiff
path: root/src/lib/fmt
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-01-22 16:23:44 -0800
committerRuss Cox <rsc@golang.org>2009-01-22 16:23:44 -0800
commit1f8a40d85c3bb7a1cf3113e7ab1afdb44f6c0e4d (patch)
treeece2442553c8681e8134d2201e6201e1e429adb8 /src/lib/fmt
parent8c5bc7e93adae7546b4f1520d1b20f18ebe95d88 (diff)
downloadgo-1f8a40d85c3bb7a1cf3113e7ab1afdb44f6c0e4d.tar.xz
move math routines from package sys to package math,
though they still build in src/runtime. use cgo instead of hand-written wrappers. R=r DELTA=740 (289 added, 300 deleted, 151 changed) OCL=23326 CL=23331
Diffstat (limited to 'src/lib/fmt')
-rw-r--r--src/lib/fmt/fmt_test.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/fmt/fmt_test.go b/src/lib/fmt/fmt_test.go
index 881fd1a366..8cafcd159a 100644
--- a/src/lib/fmt/fmt_test.go
+++ b/src/lib/fmt/fmt_test.go
@@ -7,6 +7,7 @@ package fmt
import (
"fmt";
"io";
+ "math";
"syscall";
"testing";
)
@@ -145,9 +146,9 @@ var fmttests = []fmtTest{
fmtTest{ "%g", float64(1.23456789e3), "1234.56789" },
fmtTest{ "%g", float64(1.23456789e-3), "0.00123456789" },
fmtTest{ "%g", float64(1.23456789e20), "1.23456789e+20" },
- fmtTest{ "%20e", sys.Inf(1), " +Inf" },
- fmtTest{ "%-20f", sys.Inf(-1), "-Inf " },
- fmtTest{ "%20g", sys.NaN(), " NaN" },
+ fmtTest{ "%20e", math.Inf(1), " +Inf" },
+ fmtTest{ "%-20f", math.Inf(-1), "-Inf " },
+ fmtTest{ "%20g", math.NaN(), " NaN" },
}
func TestSprintf(t *testing.T) {