summaryrefslogtreecommitdiff
path: root/excelize_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'excelize_test.go')
-rw-r--r--excelize_test.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/excelize_test.go b/excelize_test.go
index 38c299d..a5cc657 100644
--- a/excelize_test.go
+++ b/excelize_test.go
@@ -529,8 +529,12 @@ func TestAddComments(t *testing.T) {
if err != nil {
t.Log(err)
}
- xlsx.AddComment("Sheet1", "A30", `{"author":"Excelize","text":"This is first comment."}`)
- xlsx.AddComment("Sheet2", "B7", `{"author":"Excelize","text":"This is second comment."}`)
+ var s = "c"
+ for i := 0; i < 32767; i++ {
+ s += "c"
+ }
+ xlsx.AddComment("Sheet1", "A30", `{"author":"`+s+`","text":"`+s+`"}`)
+ xlsx.AddComment("Sheet2", "B7", `{"author":"Excelize: ","text":"This is a comment."}`)
err = xlsx.Save()
if err != nil {
t.Log(err)