summaryrefslogtreecommitdiff
path: root/cell_test.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2020-06-28 00:02:32 +0800
committerxuri <xuri.me@gmail.com>2020-06-28 00:02:32 +0800
commit1cbb05d4977fc1c03fa37d704118fd9c722e487d (patch)
tree9f548ea7d07cc8a007fda12b4cd2ea8f7a0155cd /cell_test.go
parent48f19f60aa3e162146a9dc4edf7b4c8cf687ec26 (diff)
GetCols support the row element without r attribute in the worksheet
Diffstat (limited to 'cell_test.go')
-rw-r--r--cell_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cell_test.go b/cell_test.go
index b2b1d54..fb30596 100644
--- a/cell_test.go
+++ b/cell_test.go
@@ -110,6 +110,9 @@ func TestGetCellValue(t *testing.T) {
assert.Equal(t, cell, value)
assert.NoError(t, err)
}
+ cols, err := f.GetCols("Sheet1")
+ assert.Equal(t, [][]string{{"", "", "A3", "A4", "", "", "A7", "A8"}, {"", "", "", "B4", "", "", "B7", "B8"}}, cols)
+ assert.NoError(t, err)
}
func TestGetCellFormula(t *testing.T) {