forked from p30928647/excelize
20 lines
452 B
Go
20 lines
452 B
Go
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")
|
|
}
|