summaryrefslogtreecommitdiff
path: root/calcchain_test.go
blob: 4956f60d4c5ae9c328b245154f9be1686a7f1657 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package excelize

import "testing"

func TestCalcChainReader(t *testing.T) {
	f := NewFile()
	f.CalcChain = nil
	f.Pkg.Store("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")
}