From 14c6a198ce27b44fcce5447a2b757ce403ebb8fc Mon Sep 17 00:00:00 2001 From: xuri Date: Mon, 24 Oct 2022 00:02:22 +0800 Subject: Support get cell value which contains a date in the ISO 8601 format - Support set and get font color with indexed color - New export variable `IndexedColorMapping` - Fix getting incorrect page margin settings when the margin is 0 - Update unit tests and comments typo fixes - ref #65, new formula functions: AGGREGATE and SUBTOTAL --- sheetpr_test.go | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'sheetpr_test.go') diff --git a/sheetpr_test.go b/sheetpr_test.go index b4ee18d..d422e3f 100644 --- a/sheetpr_test.go +++ b/sheetpr_test.go @@ -1,7 +1,6 @@ package excelize import ( - "path/filepath" "testing" "github.com/stretchr/testify/assert" @@ -39,21 +38,6 @@ func TestGetPageMargins(t *testing.T) { assert.EqualError(t, err, "sheet SheetN does not exist") } -func TestDebug(t *testing.T) { - f := NewFile() - assert.NoError(t, f.SetSheetProps("Sheet1", nil)) - ws, ok := f.Sheet.Load("xl/worksheets/sheet1.xml") - assert.True(t, ok) - ws.(*xlsxWorksheet).PageMargins = nil - ws.(*xlsxWorksheet).PrintOptions = nil - ws.(*xlsxWorksheet).SheetPr = nil - ws.(*xlsxWorksheet).SheetFormatPr = nil - // w := uint8(10) - // f.SetSheetProps("Sheet1", &SheetPropsOptions{BaseColWidth: &w}) - f.SetPageMargins("Sheet1", &PageLayoutMarginsOptions{Horizontally: boolPtr(true)}) - assert.NoError(t, f.SaveAs(filepath.Join("test", "TestDebug.xlsx"))) -} - func TestSetSheetProps(t *testing.T) { f := NewFile() assert.NoError(t, f.SetSheetProps("Sheet1", nil)) -- cgit v1.2.1