From 565b23e0e9150436da4505870428e47fb2be775f Mon Sep 17 00:00:00 2001 From: Ri Xu Date: Wed, 6 Sep 2017 13:15:25 +0800 Subject: [PATCH] go test added for pull request #114 --- excelize_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/excelize_test.go b/excelize_test.go index 29091cc..1129002 100644 --- a/excelize_test.go +++ b/excelize_test.go @@ -961,3 +961,12 @@ func TestConditionalFormat(t *testing.T) { _, err = xlsx.NewConditionalStyle(`{"font":{"color":"#9A0511"},"fill":{"type":"pattern","color":["#FEC7CE"],"pattern":1}}`) 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") + } +}