From 9e8d36ce59381eadb934585a179c4c6d7f871b35 Mon Sep 17 00:00:00 2001 From: Ri Xu Date: Sat, 31 Dec 2016 23:47:30 +0800 Subject: - Performance improvement, remove `replaceRelationshipsID` and `workBookCompatibility` functions; - New functions `GetActiveSheetIndex`, `GetSheetName` and `GetSheetMap` added. --- excelize_test.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'excelize_test.go') diff --git a/excelize_test.go b/excelize_test.go index 35a395c..7848ed9 100644 --- a/excelize_test.go +++ b/excelize_test.go @@ -54,6 +54,12 @@ func TestExcelize(t *testing.T) { f1.SetCellValue("Sheet2", "M2", nil) // Test read cell value with given axis large than exists row. f1.GetCellValue("Sheet2", "E231") + // Test get active sheet of XLSX and get sheet name of XLSX by given sheet index. + f1.GetSheetName(f1.GetActiveSheetIndex()) + // Test get sheet name of XLSX by given invalid sheet index. + f1.GetSheetName(4) + // Test get sheet map of XLSX. + f1.GetSheetMap() for i := 1; i <= 300; i++ { f1.SetCellStr("SHEET3", "c"+strconv.Itoa(i), strconv.Itoa(i)) -- cgit v1.2.1