summaryrefslogtreecommitdiff
path: root/styles_test.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2019-12-23 00:07:40 +0800
committerxuri <xuri.me@gmail.com>2019-12-23 00:07:40 +0800
commit4e4a5b9b3e052d1694442515492792fb1aa74c5a (patch)
treeebb0746cc3a26e50ed921f6f25cb295be6c3c417 /styles_test.go
parentae2865d9237cfd27d7bc4fbef3870b3361597be8 (diff)
Improve compatibility, fix workbook's rels ID calc error
Diffstat (limited to 'styles_test.go')
-rw-r--r--styles_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/styles_test.go b/styles_test.go
index 36a78ed..e6faccb 100644
--- a/styles_test.go
+++ b/styles_test.go
@@ -175,7 +175,7 @@ func TestNewStyle(t *testing.T) {
styles := f.stylesReader()
fontID := styles.CellXfs.Xf[styleID].FontID
font := styles.Fonts.Font[fontID]
- assert.Contains(t, font.Name.Val, "Times New Roman", "Stored font should contain font name")
+ assert.Contains(t, *font.Name.Val, "Times New Roman", "Stored font should contain font name")
assert.Equal(t, 2, styles.CellXfs.Count, "Should have 2 styles")
}