go test added for pull request #114

This commit is contained in:
Ri Xu 2017-09-06 13:15:25 +08:00
parent cf1077dc9f
commit 565b23e0e9
No known key found for this signature in database
GPG Key ID: BA5E5BB1C948EDF7
1 changed files with 9 additions and 0 deletions

View File

@ -961,3 +961,12 @@ func TestConditionalFormat(t *testing.T) {
_, err = xlsx.NewConditionalStyle(`{"font":{"color":"#9A0511"},"fill":{"type":"pattern","color":["#FEC7CE"],"pattern":1}}`) _, err = xlsx.NewConditionalStyle(`{"font":{"color":"#9A0511"},"fill":{"type":"pattern","color":["#FEC7CE"],"pattern":1}}`)
t.Log(err) t.Log(err)
} }
func TestTitleToNumber(t *testing.T) {
if TitleToNumber("AK") != 36 {
t.Error("Conver title to number failed")
}
if TitleToNumber("ak") != 36 {
t.Error("Conver title to number failed")
}
}