summaryrefslogtreecommitdiff
path: root/calcchain_test.go
blob: c36655bc5ef3239542d2e58f63fc19db33c3b373 (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(defaultXMLPathCalcChain, 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")
}