summaryrefslogtreecommitdiff
path: root/calcchain_test.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2020-05-22 16:53:46 +0800
committerGitHub <noreply@github.com>2020-05-22 16:53:46 +0800
commitec14de32f0c06f7a26b6b79578f666c0cc50b72c (patch)
treec6ebd61a7d9a7da5b993ffb82e4fb6c036e75d6a /calcchain_test.go
parentaa7eadbffe6ae2f9f86201bbaaa4c1d1e8829cae (diff)
parent2efc7107ff30dc7f1e1a798082616ee488f99489 (diff)
Merge branch 'master' into fix/cell_lock
Diffstat (limited to 'calcchain_test.go')
-rw-r--r--calcchain_test.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/calcchain_test.go b/calcchain_test.go
new file mode 100644
index 0000000..842dde1
--- /dev/null
+++ b/calcchain_test.go
@@ -0,0 +1,19 @@
+package excelize
+
+import "testing"
+
+func TestCalcChainReader(t *testing.T) {
+ f := NewFile()
+ f.CalcChain = nil
+ f.XLSX["xl/calcChain.xml"] = MacintoshCyrillicCharset
+ f.calcChainReader()
+}
+
+func TestDeleteCalcChain(t *testing.T) {
+ f := NewFile()
+ f.CalcChain = &xlsxCalcChain{C: []xlsxCalcChainC{}}
+ f.ContentTypes.Overrides = append(f.ContentTypes.Overrides, xlsxOverride{
+ PartName: "/xl/calcChain.xml",
+ })
+ f.deleteCalcChain(1, "A1")
+}