Browse Source

added unit tests

Rad Cirskis 7 years ago
parent
commit
1a953b6601
1 changed files with 5 additions and 0 deletions
  1. 5 0
      excelize_test.go

+ 5 - 0
excelize_test.go

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