Explorar o código

added unit tests

Rad Cirskis %!s(int64=7) %!d(string=hai) anos
pai
achega
1a953b6601
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  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) {