diff options
Diffstat (limited to 'excelize_test.go')
-rw-r--r-- | excelize_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/excelize_test.go b/excelize_test.go index 5b65109..b31e1c8 100644 --- a/excelize_test.go +++ b/excelize_test.go @@ -166,6 +166,7 @@ func TestOpenFile(t *testing.T) { assert.NoError(t, f.SetCellStr("Sheet2", "c"+strconv.Itoa(i), strconv.Itoa(i))) } assert.NoError(t, f.SaveAs(filepath.Join("test", "TestOpenFile.xlsx"))) + assert.EqualError(t, f.SaveAs(filepath.Join("test", strings.Repeat("c", 199), ".xlsx")), "file name length exceeds maximum limit") } func TestSaveFile(t *testing.T) { |