summaryrefslogtreecommitdiff
path: root/libgo/go/strconv/fp_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/strconv/fp_test.go')
-rw-r--r--libgo/go/strconv/fp_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/libgo/go/strconv/fp_test.go b/libgo/go/strconv/fp_test.go
index 991d3ac1e43..9785ca6916d 100644
--- a/libgo/go/strconv/fp_test.go
+++ b/libgo/go/strconv/fp_test.go
@@ -7,6 +7,7 @@ package strconv_test
import (
"bufio"
"fmt"
+ "io"
"os"
"strconv"
"strings"
@@ -105,11 +106,11 @@ func TestFp(t *testing.T) {
lineno := 0
for {
line, err2 := b.ReadString('\n')
- if err2 == os.EOF {
+ if err2 == io.EOF {
break
}
if err2 != nil {
- t.Fatal("testfp: read testfp.txt: " + err2.String())
+ t.Fatal("testfp: read testfp.txt: " + err2.Error())
}
line = line[0 : len(line)-1]
lineno++