You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
443 B
20 lines
443 B
5 years ago
|
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")
|
||
|
}
|