Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
b
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
b
Commits
5f12ed84
Commit
5f12ed84
authored
Aug 29, 2013
by
Jan Mercl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use fileutil.IsEOF()
parent
f0b6f46e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
all_test.go
all_test.go
+3
-3
No files found.
all_test.go
View file @
5f12ed84
...
...
@@ -6,13 +6,13 @@ package b
import
(
"fmt"
"io"
"math"
"path"
"runtime"
"runtime/debug"
"testing"
"github.com/cznic/fileutil"
"github.com/cznic/mathutil"
)
...
...
@@ -579,7 +579,7 @@ func TestEnumeratorNext(t *testing.T) {
k
,
v
,
err
:=
en
.
Next
()
if
err
!=
nil
{
if
err
!=
io
.
EOF
{
if
!
fileutil
.
IsEOF
(
err
)
{
t
.
Fatal
(
i
,
err
)
}
...
...
@@ -652,7 +652,7 @@ func TestEnumeratorPrev(t *testing.T) {
k
,
v
,
err
:=
en
.
Prev
()
if
err
!=
nil
{
if
err
!=
io
.
EOF
{
if
!
fileutil
.
IsEOF
(
err
)
{
t
.
Fatal
(
i
,
err
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment