summaryrefslogtreecommitdiff
path: root/excelize_test.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2021-04-30 00:14:42 +0800
committerxuri <xuri.me@gmail.com>2021-04-30 00:14:42 +0800
commit7e429c5b464b53f305e94cc355f14ba9e1d9849c (patch)
treec732503f48464b6303291d2538f80d170c4bc913 /excelize_test.go
parentaf5e87dbcf5a89201072f5ca07d532258ece278f (diff)
Fixe issue generated file corrupted caused by incorrect default XML namespace attributes
Diffstat (limited to 'excelize_test.go')
-rw-r--r--excelize_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/excelize_test.go b/excelize_test.go
index f663ae0..0dcfacb 100644
--- a/excelize_test.go
+++ b/excelize_test.go
@@ -54,7 +54,7 @@ func TestOpenFile(t *testing.T) {
assert.NoError(t, f.SetCellStr("Sheet2", "C11", "Knowns"))
// Test max characters in a cell.
- assert.NoError(t, f.SetCellStr("Sheet2", "D11", strings.Repeat("c", 32769)))
+ assert.NoError(t, f.SetCellStr("Sheet2", "D11", strings.Repeat("c", TotalCellChars+2)))
f.NewSheet(":\\/?*[]Maximum 31 characters allowed in sheet title.")
// Test set worksheet name with illegal name.
f.SetSheetName("Maximum 31 characters allowed i", "[Rename]:\\/?* Maximum 31 characters allowed in sheet title.")