diff options
author | xuri <xuri.me@gmail.com> | 2020-06-22 00:14:56 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2020-06-22 00:14:56 +0800 |
commit | 15fd56853fe1b63217fb963c951cf4fef7b56a08 (patch) | |
tree | 36833ac2803ffd7b4294b99fc538056298ed8992 /col_test.go | |
parent | 5221729bc342c5b12883ebe03898a85f755233c9 (diff) |
Update docs and typo fixed
Diffstat (limited to 'col_test.go')
-rw-r--r-- | col_test.go | 4 |
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) } |