소스 검색

Fixed syntax error in test

Jordan Wright 9 년 전
부모
커밋
f61123ea07
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      email_test.go

+ 3 - 0
email_test.go

@@ -287,6 +287,9 @@ Testing!
 	if err != nil {
 		t.Fatalf("Error when parsing email %s", err.Error())
 	}
+	if !bytes.Equal(e.Text, []byte("Testing!")) {
+		t.Fatalf("Error incorrect text: %#q != %#q\n", e.Text, "Testing!")
+	}
 }
 
 // *Since the mime library in use by ```email``` is now in the stdlib, this test is deprecated