소스 검색

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) {