summaryrefslogtreecommitdiff
path: root/rows_test.go
diff options
context:
space:
mode:
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")))
}