diff options
author | xuri <xuri.me@gmail.com> | 2022-10-28 00:31:55 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2022-10-28 00:31:55 +0800 |
commit | a410b22bdd50e9f212b0b454e5aed798e3476394 (patch) | |
tree | d8b234f1171f4c0222d09182dc9ed8e7e3ace658 /merge_test.go | |
parent | adf9d37d82edd3dbc365fece76a031a92e2220d6 (diff) |
Fix the error on getting the range of merged cells on the worksheet which contains one cell merged cell range
- Parse workbook default theme for custom theme color support in the feature
- Variables name typo fix
- Add system foreground and background color as RGB in the IndexedColorMapping list
Diffstat (limited to 'merge_test.go')
-rw-r--r-- | merge_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/merge_test.go b/merge_test.go index 6977c5a..e0b9210 100644 --- a/merge_test.go +++ b/merge_test.go @@ -185,7 +185,7 @@ func TestUnmergeCell(t *testing.T) { ws, ok = f.Sheet.Load("xl/worksheets/sheet1.xml") assert.True(t, ok) ws.(*xlsxWorksheet).MergeCells = &xlsxMergeCells{Cells: []*xlsxMergeCell{{Ref: "A1"}}} - assert.EqualError(t, f.UnmergeCell("Sheet1", "A2", "B3"), ErrParameterInvalid.Error()) + assert.NoError(t, f.UnmergeCell("Sheet1", "A2", "B3")) ws, ok = f.Sheet.Load("xl/worksheets/sheet1.xml") assert.True(t, ok) @@ -194,6 +194,6 @@ func TestUnmergeCell(t *testing.T) { } func TestFlatMergedCells(t *testing.T) { - ws := &xlsxWorksheet{MergeCells: &xlsxMergeCells{Cells: []*xlsxMergeCell{{Ref: "A1"}}}} - assert.EqualError(t, flatMergedCells(ws, [][]*xlsxMergeCell{}), ErrParameterInvalid.Error()) + ws := &xlsxWorksheet{MergeCells: &xlsxMergeCells{Cells: []*xlsxMergeCell{{Ref: ""}}}} + assert.EqualError(t, flatMergedCells(ws, [][]*xlsxMergeCell{}), "cannot convert cell \"\" to coordinates: invalid cell name \"\"") } |