瀏覽代碼

go test added for pull request #114

Ri Xu 8 年之前
父節點
當前提交
565b23e0e9
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. 9 0
      excelize_test.go

+ 9 - 0
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")
+	}
+}