summaryrefslogtreecommitdiff
path: root/cell_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'cell_test.go')
-rw-r--r--cell_test.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/cell_test.go b/cell_test.go
index b3bb997..8d00e2d 100644
--- a/cell_test.go
+++ b/cell_test.go
@@ -682,8 +682,10 @@ func TestSharedStringsError(t *testing.T) {
rows, err := f.Rows("Sheet1")
assert.NoError(t, err)
const maxUint16 = 1<<16 - 1
+ currentRow := 0
for rows.Next() {
- if rows.CurrentRow() == 19 {
+ currentRow++
+ if currentRow == 19 {
_, err := rows.Columns()
assert.NoError(t, err)
// Test get cell value from string item with invalid offset
@@ -705,8 +707,10 @@ func TestSharedStringsError(t *testing.T) {
assert.NoError(t, err)
rows, err = f.Rows("Sheet1")
assert.NoError(t, err)
+ currentRow = 0
for rows.Next() {
- if rows.CurrentRow() == 19 {
+ currentRow++
+ if currentRow == 19 {
_, err := rows.Columns()
assert.NoError(t, err)
break