summaryrefslogtreecommitdiff
path: root/src/pkg/strconv/fp_test.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-10-07 11:55:06 -0700
committerRuss Cox <rsc@golang.org>2009-10-07 11:55:06 -0700
commit2b77e59eaed6d039951b5ef7ad1f3db421962dc2 (patch)
tree10feec844f56ec9dce304804c581d9c5209e74c1 /src/pkg/strconv/fp_test.go
parent5843e5da3dca981d5b2522a3be91bd1426c71d26 (diff)
downloadgolang-2b77e59eaed6d039951b5ef7ad1f3db421962dc2.tar.gz
apply gofmt to rand reflect regexp rpc runtime sort strconv strings sync syscall testing time unicode unsafe utf8
R=gri DELTA=1409 (79 added, 24 deleted, 1306 changed) OCL=35415 CL=35437
Diffstat (limited to 'src/pkg/strconv/fp_test.go')
-rw-r--r--src/pkg/strconv/fp_test.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/pkg/strconv/fp_test.go b/src/pkg/strconv/fp_test.go
index 89092a634..6f25acf78 100644
--- a/src/pkg/strconv/fp_test.go
+++ b/src/pkg/strconv/fp_test.go
@@ -3,6 +3,7 @@
// license that can be found in the LICENSE file.
package strconv_test
+
import (
"bufio";
"fmt";
@@ -21,7 +22,7 @@ func pow2(i int) float64 {
case i == 1:
return 2;
}
- return pow2(i/2) * pow2(i-i/2);
+ return pow2(i/2) * pow2(i - i/2);
}
// Wrapper around strconv.Atof64. Handles dddddp+ddd (binary exponent)
@@ -110,10 +111,10 @@ func TestFp(t *testing.T) {
if err2 != nil {
panicln("testfp: read testfp.txt:", err2.String());
}
- line = line[0:len(line)-1];
+ line = line[0 : len(line)-1];
lineno++;
if len(line) == 0 || line[0] == '#' {
- continue
+ continue;
}
a := strings.Split(line, " ", 0);
if len(a) != 4 {