summaryrefslogtreecommitdiff
path: root/col_test.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2020-06-22 00:14:56 +0800
committerxuri <xuri.me@gmail.com>2020-06-22 00:14:56 +0800
commit15fd56853fe1b63217fb963c951cf4fef7b56a08 (patch)
tree36833ac2803ffd7b4294b99fc538056298ed8992 /col_test.go
parent5221729bc342c5b12883ebe03898a85f755233c9 (diff)
Update docs and typo fixed
Diffstat (limited to 'col_test.go')
-rw-r--r--col_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/col_test.go b/col_test.go
index fac78eb..e6e7e29 100644
--- a/col_test.go
+++ b/col_test.go
@@ -129,7 +129,7 @@ func TestGetColsError(t *testing.T) {
cols.totalRow = 2
cols.totalCol = 2
cols.curCol = 1
- cols.decoder = []byte(`<worksheet><sheetData><row r="1"><c r="A" t="str"><v>A</v></c></row></sheetData></worksheet>`)
+ cols.sheetXML = []byte(`<worksheet><sheetData><row r="1"><c r="A" t="str"><v>A</v></c></row></sheetData></worksheet>`)
_, err = cols.Rows()
assert.EqualError(t, err, `cannot convert cell "A" to coordinates: invalid cell name "A"`)
}
@@ -153,7 +153,7 @@ func TestColsRows(t *testing.T) {
assert.NoError(t, err)
// Test if token is nil
- cols.decoder = nil
+ cols.sheetXML = nil
_, err = cols.Rows()
assert.NoError(t, err)
}