[Rt-commit] rt branch, 4.0/set-mime-encoding-fallback, updated. rt-4.0.1rc1-21-g4a4c702

? sunnavy sunnavy at bestpractical.com
Thu Aug 4 02:19:50 EDT 2011


The branch, 4.0/set-mime-encoding-fallback has been updated
       via  4a4c702afa3f0b4951381e0fefec7e140cf38ba2 (commit)
      from  5763052672fec129df3eb4246e556db9eb5e287d (commit)

Summary of changes:
 t/mail/wrong_mime_charset.t |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

- Log -----------------------------------------------------------------
commit 4a4c702afa3f0b4951381e0fefec7e140cf38ba2
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Thu Aug 4 14:08:11 2011 +0800

    we should check warnings number before checking the equality.

diff --git a/t/mail/wrong_mime_charset.t b/t/mail/wrong_mime_charset.t
index 4dd0051..90ee121 100644
--- a/t/mail/wrong_mime_charset.t
+++ b/t/mail/wrong_mime_charset.t
@@ -32,10 +32,8 @@ TODO: {
 # and Data respectively.
 # but 5.8 and 5.10 warns only once.
 ok( @warnings == 1 || @warnings == 2, "1 or 2 warnings are ok" );
-ok(
-    @warnings == 1 || $warnings[1] eq $warnings[0],
-    'if there are 2 warnings, they should be same'
-);
+ok( @warnings == 1 || ( @warnings == 2 && $warnings[1] eq $warnings[0] ),
+    'if there are 2 warnings, they should be same' );
 
 like(
     $warnings[0],

-----------------------------------------------------------------------


More information about the Rt-commit mailing list