From 1cbb05d4977fc1c03fa37d704118fd9c722e487d Mon Sep 17 00:00:00 2001 From: xuri Date: Sun, 28 Jun 2020 00:02:32 +0800 Subject: GetCols support the row element without r attribute in the worksheet --- cell_test.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cell_test.go') 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) { -- cgit v1.2.1