diff options
author | xuri <xuri.me@gmail.com> | 2019-10-26 20:55:24 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2019-10-26 20:55:24 +0800 |
commit | 5e418ebd665f38d1211b27d7157ec7e5868451bc (patch) | |
tree | a2e72dc8d5690856e8157e8208539c780ec631d6 /col_test.go | |
parent | 87390cdd99b3afbe07daeef9abe96f57d03cb352 (diff) |
Resolve #507, add the new function `DeleteDefinedName`
Diffstat (limited to 'col_test.go')
-rw-r--r-- | col_test.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/col_test.go b/col_test.go index a696caa..edbdae7 100644 --- a/col_test.go +++ b/col_test.go @@ -53,10 +53,15 @@ func TestOutlineLevel(t *testing.T) { assert.NoError(t, f.SetRowOutlineLevel("Sheet1", 2, 7)) assert.EqualError(t, f.SetColOutlineLevel("Sheet1", "D", 8), "invalid outline level") assert.EqualError(t, f.SetRowOutlineLevel("Sheet1", 2, 8), "invalid outline level") + // Test set row outline level on not exists worksheet. + assert.EqualError(t, f.SetRowOutlineLevel("SheetN", 1, 4), "sheet SheetN is not exist") + // Test get row outline level on not exists worksheet. + _, err := f.GetRowOutlineLevel("SheetN", 1) + assert.EqualError(t, err, "sheet SheetN is not exist") // Test set and get column outline level with illegal cell coordinates. assert.EqualError(t, f.SetColOutlineLevel("Sheet1", "*", 1), `invalid column name "*"`) - _, err := f.GetColOutlineLevel("Sheet1", "*") + _, err = f.GetColOutlineLevel("Sheet1", "*") assert.EqualError(t, err, `invalid column name "*"`) // Test set column outline level on not exists worksheet. |