summaryrefslogtreecommitdiff
path: root/rows_test.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2022-05-02 12:30:18 +0800
committerGitHub <noreply@github.com>2022-05-02 12:30:18 +0800
commiteed431e0fc2f61b13e7745857a41cb47d9f7f810 (patch)
tree8244e1b4749d177313e51a3d73686d16c0176451 /rows_test.go
parent773d4afa32a55349a7b178c4c76d182f9ed0221f (diff)
This closes #1219, fixes cell value reading issue, improves performance, and 1904 date system support
- Fix incorrect cell data types casting results when number formatting - Support set cell value on 1904 date system enabled, ref #1212 - Improve performance for set sheet row and the merging cells, fix performance impact when resolving #1129
Diffstat (limited to 'rows_test.go')
-rw-r--r--rows_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/rows_test.go b/rows_test.go
index ae30838..014b2d8 100644
--- a/rows_test.go
+++ b/rows_test.go
@@ -928,6 +928,11 @@ func TestSetRowStyle(t *testing.T) {
cellStyleID, err := f.GetCellStyle("Sheet1", "B2")
assert.NoError(t, err)
assert.Equal(t, style2, cellStyleID)
+ // Test cell inheritance rows style
+ assert.NoError(t, f.SetCellValue("Sheet1", "C1", nil))
+ cellStyleID, err = f.GetCellStyle("Sheet1", "C1")
+ assert.NoError(t, err)
+ assert.Equal(t, style2, cellStyleID)
assert.NoError(t, f.SaveAs(filepath.Join("test", "TestSetRowStyle.xlsx")))
}