Skip to content

Commit cac78a0

Browse files
committed
In case of empty file, errors other than EOF may be returned
1 parent 5740e27 commit cac78a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

csv_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ func TestCsvEmptyNew(t *testing.T) {
4848
t.Error(err)
4949
}
5050
_, err = r.GetColumn(1)
51-
if err.Error() != "EOF" {
52-
t.Error(err)
51+
if err == nil {
52+
t.Error(`csvEmpty is should error`)
5353
}
5454
}
5555

0 commit comments

Comments
 (0)