summaryrefslogtreecommitdiff
path: root/excelize_test.go
diff options
context:
space:
mode:
authorRi Xu <xuri.me@gmail.com>2018-03-16 20:54:07 +0800
committerRi Xu <xuri.me@gmail.com>2018-03-16 20:54:07 +0800
commitd65b30055d247b3f51ffb6f3713a0e913790f0b3 (patch)
tree6e30fa3c012bfd9066851314e9665b3f4edfb792 /excelize_test.go
parent770026e956508e1ff0d1563617d7a3c8f212fb22 (diff)
- Update the function `NewSheet()` to handle when already exists a worksheet of the same name, relate pull request #196;
- go test and godoc has been updated
Diffstat (limited to 'excelize_test.go')
-rw-r--r--excelize_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/excelize_test.go b/excelize_test.go
index 2b67c9e..b98400c 100644
--- a/excelize_test.go
+++ b/excelize_test.go
@@ -190,6 +190,7 @@ func TestBrokenFile(t *testing.T) {
func TestNewFile(t *testing.T) {
// Test create a XLSX file.
xlsx := NewFile()
+ xlsx.NewSheet("Sheet1")
xlsx.NewSheet("XLSXSheet2")
xlsx.NewSheet("XLSXSheet3")
xlsx.SetCellInt("XLSXSheet2", "A23", 56)