diff options
author | xuri <xuri.me@gmail.com> | 2022-01-27 22:37:32 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2022-01-27 22:37:32 +0800 |
commit | 156bf6d16ecbd5257d81e781138eaaaf357ffbec (patch) | |
tree | 1f0e630121f6368e004734f176f6d1549988f176 /rows_test.go | |
parent | 3ee3c38f9c63de3782fad21aae9c05ee0530fc32 (diff) |
This closes #1129, make cell support inheritance columns/rows style
Correct cells style in merge range
Fix incorrect style ID returned on getting cell style in some cases
Unit test updated and simplified code
Diffstat (limited to 'rows_test.go')
-rw-r--r-- | rows_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rows_test.go b/rows_test.go index 4d81e66..1286a37 100644 --- a/rows_test.go +++ b/rows_test.go @@ -921,6 +921,9 @@ func TestSetRowStyle(t *testing.T) { assert.EqualError(t, f.SetRowStyle("Sheet1", 1, 1, -1), newInvalidStyleID(-1).Error()) assert.EqualError(t, f.SetRowStyle("SheetN", 1, 1, styleID), "sheet SheetN is not exist") assert.NoError(t, f.SetRowStyle("Sheet1", 10, 1, styleID)) + cellStyleID, err := f.GetCellStyle("Sheet1", "B2") + assert.NoError(t, err) + assert.Equal(t, styleID, cellStyleID) assert.NoError(t, f.SaveAs(filepath.Join("test", "TestSetRowStyle.xlsx"))) } |