diff options
author | xuri <xuri.me@gmail.com> | 2019-05-05 16:25:57 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2019-05-05 16:25:57 +0800 |
commit | 69b38ddcd60f7cf4c158c706ddbbeb89a8ff2108 (patch) | |
tree | ae7fdf36fda004ab48b3f2e82120bcfc51824515 /excelize_test.go | |
parent | 72701e89c7145f9d08a79c93040e232b2875c855 (diff) |
Resolve #394, init set header and footer support
Diffstat (limited to 'excelize_test.go')
-rw-r--r-- | excelize_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/excelize_test.go b/excelize_test.go index c76aa92..3509cb8 100644 --- a/excelize_test.go +++ b/excelize_test.go @@ -789,9 +789,9 @@ func TestCopySheet(t *testing.T) { } idx := f.NewSheet("CopySheet") - assert.EqualError(t, f.CopySheet(1, idx), "sheet sheet1 is not exist") + assert.NoError(t, f.CopySheet(1, idx)) - f.SetCellValue("Sheet4", "F1", "Hello") + f.SetCellValue("CopySheet", "F1", "Hello") val, err := f.GetCellValue("Sheet1", "F1") assert.NoError(t, err) assert.NotEqual(t, "Hello", val) @@ -805,8 +805,8 @@ func TestCopySheetError(t *testing.T) { t.FailNow() } - err = f.CopySheet(0, -1) - if !assert.EqualError(t, err, "invalid worksheet index") { + assert.EqualError(t, f.copySheet(0, -1), "sheet is not exist") + if !assert.EqualError(t, f.CopySheet(0, -1), "invalid worksheet index") { t.FailNow() } |