Browse Source

added unit tests

Rad Cirskis 7 năm trước cách đây
mục cha
commit
1a953b6601
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  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) {