diff options
Diffstat (limited to 'excelize_test.go')
-rw-r--r-- | excelize_test.go | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/excelize_test.go b/excelize_test.go index 634364d..292b358 100644 --- a/excelize_test.go +++ b/excelize_test.go @@ -34,7 +34,7 @@ func TestExcelize(t *testing.T) { // Test completion column. f1.SetCellValue("Sheet2", "M2", nil) // Test read cell value with given axis large than exists row. - f1.GetCellValue("Sheet2", "E13") + f1.GetCellValue("Sheet2", "E231") for i := 1; i <= 300; i++ { f1.SetCellStr("SHEET3", "c"+strconv.Itoa(i), strconv.Itoa(i)) @@ -78,6 +78,13 @@ func TestExcelize(t *testing.T) { t.Log(err) } + // Test set active sheet without BookViews and Sheets maps in xl/workbook.xml. + f4, err := OpenFile("./test/badWorkbook.xlsx") + f4.SetActiveSheet(2) + if err != nil { + t.Log(err) + } + // Test open a XLSX file with given illegal path. _, err = OpenFile("./test/Workbook.xlsx") if err != nil { |