Skip to content

Commit

Permalink
In case of empty file, errors other than EOF may be returned
Browse files Browse the repository at this point in the history
  • Loading branch information
noborus committed Jan 13, 2019
1 parent 5740e27 commit cac78a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions csv_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ func TestCsvEmptyNew(t *testing.T) {
t.Error(err)
}
_, err = r.GetColumn(1)
if err.Error() != "EOF" {
t.Error(err)
if err == nil {
t.Error(`csvEmpty is should error`)
}
}

Expand Down

0 comments on commit cac78a0

Please sign in to comment.