浏览代码

added unit tests

Rad Cirskis 7 年之前
父节点
当前提交
1a953b6601
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      excelize_test.go

+ 5 - 0
excelize_test.go

@@ -816,6 +816,11 @@ func TestAddComments(t *testing.T) {
 	if err != nil {
 		t.Error(err)
 	}
+	allComments := xlsx.GetComments()
+	if len(allComments) != 2 {
+		t.Error("Expected 2 comment entry elements.")
+	}
+
 }
 
 func TestAutoFilter(t *testing.T) {