summaryrefslogtreecommitdiff
path: root/adjust_test.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2019-04-15 11:22:57 +0800
committerxuri <xuri.me@gmail.com>2019-04-15 11:22:57 +0800
commitf2df344739146189a1dea7cfb81239231af5135b (patch)
treed0a119d2c2d3e25a6b3d298088f233db1bb39648 /adjust_test.go
parentc423617e9d948b61cf9397710bf8f2098efe7634 (diff)
Resolve #369,#370
add error return value exported functions: GetMergeCells ProtectSheet UnprotectSheet UpdateLinkedValue GetMergeCells SetSheetVisible inner functions: workSheetReader copySheet
Diffstat (limited to 'adjust_test.go')
-rw-r--r--adjust_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/adjust_test.go b/adjust_test.go
index 104eff9..a35e609 100644
--- a/adjust_test.go
+++ b/adjust_test.go
@@ -46,6 +46,7 @@ func TestAdjustAutoFilter(t *testing.T) {
func TestAdjustHelper(t *testing.T) {
f := NewFile()
+ f.NewSheet("Sheet2")
f.Sheet["xl/worksheets/sheet1.xml"] = &xlsxWorksheet{
MergeCells: &xlsxMergeCells{
Cells: []*xlsxMergeCell{
@@ -61,6 +62,6 @@ func TestAdjustHelper(t *testing.T) {
},
}
// testing adjustHelper with illegal cell coordinates.
- assert.EqualError(t, f.adjustHelper("sheet1", rows, 0, 0), `cannot convert cell "A" to coordinates: invalid cell name "A"`)
- assert.EqualError(t, f.adjustHelper("sheet2", rows, 0, 0), `cannot convert cell "B" to coordinates: invalid cell name "B"`)
+ assert.EqualError(t, f.adjustHelper("Sheet1", rows, 0, 0), `cannot convert cell "A" to coordinates: invalid cell name "A"`)
+ assert.EqualError(t, f.adjustHelper("Sheet2", rows, 0, 0), `cannot convert cell "B" to coordinates: invalid cell name "B"`)
}