瀏覽代碼

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