From 6185cd577df8223f4c8e4b239a046bdfe8d07fd9 Mon Sep 17 00:00:00 2001 From: Ri Xu Date: Sun, 23 Oct 2016 16:46:46 +0800 Subject: Update go test. --- excelize_test.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'excelize_test.go') 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 { -- cgit v1.2.1