@@ -100,7 +100,7 @@ func TestPivotTable(t *testing.T) {
100100 ShowColHeaders : true ,
101101 ShowLastColumn : true ,
102102 }))
103- // Test get pivot table with show value as with base field and base item
103+ // Test get pivot table with show values as with base field and base item
104104 pivotTables , err = f .GetPivotTables ("Sheet1" )
105105 assert .NoError (t , err )
106106 assert .Len (t , pivotTables , 4 )
@@ -331,7 +331,7 @@ func TestPivotTable(t *testing.T) {
331331 Data : []PivotTableField {{Data : "Revenue" }},
332332 Filter : []PivotTableField {{Data : "Month" }},
333333 }))
334- // Test with unsupported pivot table data field show value as type
334+ // Test with unsupported pivot table data field show values as type
335335 assert .Equal (t , ErrUnsupportedPivotTableShowValuesAsType , f .AddPivotTable (& PivotTableOptions {
336336 DataRange : "Sheet1!A1:E31" ,
337337 PivotTableRange : "Sheet1!G2:M34" ,
@@ -340,7 +340,7 @@ func TestPivotTable(t *testing.T) {
340340 Data : []PivotTableField {{Data : "Revenue" , ShowValuesAs : PivotTableShowValuesAs {Type : 15 }}},
341341 Filter : []PivotTableField {{Data : "Month" }},
342342 }))
343- // Test set pivot table show value as type without required base field
343+ // Test set pivot table show values as type without required base field
344344 assert .Equal (t , ErrPivotTableShowValuesAsBaseField , f .AddPivotTable (& PivotTableOptions {
345345 DataRange : "Sheet1!A1:E31" ,
346346 PivotTableRange : "Sheet1!G2:M34" ,
@@ -349,7 +349,7 @@ func TestPivotTable(t *testing.T) {
349349 Data : []PivotTableField {{Data : "Revenue" , ShowValuesAs : PivotTableShowValuesAs {Type : PivotTableShowValuesAsRunningTotalIn }}},
350350 Filter : []PivotTableField {{Data : "Month" }},
351351 }))
352- // Test set pivot table show value as type without required base item
352+ // Test set pivot table show values as type without required base item
353353 assert .Equal (t , ErrPivotTableShowValuesAsBaseItem , f .AddPivotTable (& PivotTableOptions {
354354 DataRange : "Sheet1!A1:E31" ,
355355 PivotTableRange : "Sheet1!G2:M34" ,
@@ -358,7 +358,7 @@ func TestPivotTable(t *testing.T) {
358358 Data : []PivotTableField {{Data : "Revenue" , ShowValuesAs : PivotTableShowValuesAs {Type : PivotTableShowValuesAsPercentOf , BaseField : "Month" }}},
359359 Filter : []PivotTableField {{Data : "Month" }},
360360 }))
361- // Test with invalid pivot table show value as base field
361+ // Test with invalid pivot table show values as base field
362362 assert .Equal (t , newPivotTableShowValuesAsBaseFieldError ("x" ), f .AddPivotTable (& PivotTableOptions {
363363 DataRange : "Sheet1!A1:E31" ,
364364 PivotTableRange : "Sheet1!G2:M34" ,
@@ -367,7 +367,7 @@ func TestPivotTable(t *testing.T) {
367367 Data : []PivotTableField {{Data : "Revenue" , ShowValuesAs : PivotTableShowValuesAs {Type : PivotTableShowValuesAsRunningTotalIn , BaseField : "x" }}},
368368 Filter : []PivotTableField {{Data : "Month" }},
369369 }))
370- // Test with invalid pivot table show value as base item
370+ // Test with invalid pivot table show values as base item
371371 assert .Equal (t , newPivotTableSelectedItemError ("x" , "Month" ), f .AddPivotTable (& PivotTableOptions {
372372 DataRange : "Sheet1!A1:E31" ,
373373 PivotTableRange : "Sheet1!G2:M34" ,
0 commit comments