diff options
author | xuri <xuri.me@gmail.com> | 2022-10-24 00:02:22 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2022-10-24 00:52:09 +0800 |
commit | 14c6a198ce27b44fcce5447a2b757ce403ebb8fc (patch) | |
tree | a59eea77f6e6d691a1015afa2b3629cbe7cc695b /sheetpr_test.go | |
parent | f843a9ea56710deb4cdb77ea2cd3a08d8d82d3e6 (diff) |
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
Diffstat (limited to 'sheetpr_test.go')
-rw-r--r-- | sheetpr_test.go | 16 |
1 files changed, 0 insertions, 16 deletions
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)) |