about summary refs log tree commit homepage
path: root/t/mime.t
diff options
context:
space:
mode:
Diffstat (limited to 't/mime.t')
-rw-r--r--t/mime.t5
1 files changed, 3 insertions, 2 deletions
diff --git a/t/mime.t b/t/mime.t
index 0d478ace..b9a4d66b 100644
--- a/t/mime.t
+++ b/t/mime.t
@@ -98,9 +98,10 @@ $msg = PublicInbox::MIME->new($raw);
 my $nr = 0;
 msg_iter($msg, sub {
         my ($part, $level, @ex) = @{$_[0]};
-        if ($ex[0] == 1) {
+        is($level, 1, 'at expected level');
+        if (join('fail if $#ex > 0', @ex) eq '1') {
                 is($part->body_str, "your tree directly? \r\n", 'body OK');
-        } elsif ($ex[0] == 2) {
+        } elsif (join('fail if $#ex > 0', @ex) eq '2') {
                 is($part->body, "-----BEGIN PGP SIGNATURE-----\n\n" .
                                 "=7wIb\n" .
                                 "-----END PGP SIGNATURE-----\n",