summaryrefslogtreecommitdiff
path: root/excelize_test.go
diff options
context:
space:
mode:
authorRi Xu <xuri.me@gmail.com>2017-05-13 14:12:43 +0800
committerRi Xu <xuri.me@gmail.com>2017-05-13 14:12:43 +0800
commitcf97118bfe48eb36b82c4a833b51d3ea4bfffa97 (patch)
tree0024addd342c3968381028ea37000fd1191740cb /excelize_test.go
parentd93a156355547c583bf35bf1201f92a3c68e89f0 (diff)
- The max author and text in comment limit added;
- go doc and go test updated
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)