Selaa lähdekoodia

added unit tests

Rad Cirskis 7 vuotta sitten
vanhempi
commit
1a953b6601
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  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) {