summaryrefslogtreecommitdiff
path: root/pivotTable_test.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2019-10-24 23:18:02 +0800
committerxuri <xuri.me@gmail.com>2019-10-24 23:18:02 +0800
commit87390cdd99b3afbe07daeef9abe96f57d03cb352 (patch)
tree54c2ec7b954f2f1f18bc4432902fce9e9c1dbc4d /pivotTable_test.go
parent9fe267ffcfa06545223160cdb8c35cd91163730e (diff)
Resolve #511, allow empty columns in the pivot table
Diffstat (limited to 'pivotTable_test.go')
-rw-r--r--pivotTable_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/pivotTable_test.go b/pivotTable_test.go
index 27e5914..9bf08e8 100644
--- a/pivotTable_test.go
+++ b/pivotTable_test.go
@@ -54,6 +54,12 @@ func TestAddPivotTable(t *testing.T) {
Columns: []string{"Region", "Year"},
Data: []string{"Sales"},
}))
+ assert.NoError(t, f.AddPivotTable(&PivotTableOption{
+ DataRange: "Sheet1!$A$1:$E$31",
+ PivotTableRange: "Sheet1!$AE$2:$AG$33",
+ Rows: []string{"Month", "Year"},
+ Data: []string{"Sales"},
+ }))
f.NewSheet("Sheet2")
assert.NoError(t, f.AddPivotTable(&PivotTableOption{
DataRange: "Sheet1!$A$1:$E$31",