Commit 5f12ed84 authored by Jan Mercl's avatar Jan Mercl

Use fileutil.IsEOF()

parent f0b6f46e
...@@ -6,13 +6,13 @@ package b ...@@ -6,13 +6,13 @@ package b
import ( import (
"fmt" "fmt"
"io"
"math" "math"
"path" "path"
"runtime" "runtime"
"runtime/debug" "runtime/debug"
"testing" "testing"
"github.com/cznic/fileutil"
"github.com/cznic/mathutil" "github.com/cznic/mathutil"
) )
...@@ -579,7 +579,7 @@ func TestEnumeratorNext(t *testing.T) { ...@@ -579,7 +579,7 @@ func TestEnumeratorNext(t *testing.T) {
k, v, err := en.Next() k, v, err := en.Next()
if err != nil { if err != nil {
if err != io.EOF { if !fileutil.IsEOF(err) {
t.Fatal(i, err) t.Fatal(i, err)
} }
...@@ -652,7 +652,7 @@ func TestEnumeratorPrev(t *testing.T) { ...@@ -652,7 +652,7 @@ func TestEnumeratorPrev(t *testing.T) {
k, v, err := en.Prev() k, v, err := en.Prev()
if err != nil { if err != nil {
if err != io.EOF { if !fileutil.IsEOF(err) {
t.Fatal(i, err) t.Fatal(i, err)
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment