summaryrefslogtreecommitdiff
path: root/adjust_test.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2021-02-02 22:23:16 +0800
committerxuri <xuri.me@gmail.com>2021-02-02 22:23:16 +0800
commit1f329e8f968014e26351a729ba7e6e3c846e96db (patch)
tree16d5e3629e071eb313e914badd6ec55f369c004e /adjust_test.go
parentdb7b4ee36200df4b4838c2111e81808016b4f6ef (diff)
This closes #774, closes #775 and closes #776
- correct adjust calculation chain in duplicate rows - correct adjust defined name in the workbook when delete worksheet - use absolute reference in the auto filters defined name to make it compatible with OpenOffice - API `CoordinatesToCellName` have a new optional param to specify if using an absolute reference format - Fix cyclomatic complexity issue of internal function `newFills` and `parseToken`
Diffstat (limited to 'adjust_test.go')
-rw-r--r--adjust_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/adjust_test.go b/adjust_test.go
index 3997bd9..bdbaebe 100644
--- a/adjust_test.go
+++ b/adjust_test.go
@@ -98,13 +98,13 @@ func TestAdjustCalcChain(t *testing.T) {
f := NewFile()
f.CalcChain = &xlsxCalcChain{
C: []xlsxCalcChainC{
- {R: "B2"},
+ {R: "B2", I: 2}, {R: "B2", I: 1},
},
}
assert.NoError(t, f.InsertCol("Sheet1", "A"))
assert.NoError(t, f.InsertRow("Sheet1", 1))
- f.CalcChain.C[0].R = "invalid coordinates"
+ f.CalcChain.C[1].R = "invalid coordinates"
assert.EqualError(t, f.InsertCol("Sheet1", "A"), `cannot convert cell "invalid coordinates" to coordinates: invalid cell name "invalid coordinates"`)
f.CalcChain = nil
assert.NoError(t, f.InsertCol("Sheet1", "A"))