]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/eml.t
t/imapd.t: skip dependent test on failure
[public-inbox.git] / t / eml.t
diff --git a/t/eml.t b/t/eml.t
index 1892b00123528a4f56d21d76e64b55322007a243..8d131b1418eb7c510b55297ef2cbeed4632fd038 100644 (file)
--- a/t/eml.t
+++ b/t/eml.t
@@ -80,7 +80,7 @@ for my $cls (@classes) {
        $eml->header_str_set('Subject', "\x{100}");
        like($eml->header_raw('Subject'), qr/utf-8\?B\?/i,
                'MIME-B encoded UTF-8 Subject');
-       is_deeply([$eml->header_str('Subject')], [ "\x{100}" ],
+       is_deeply([$eml->header('Subject')], [ "\x{100}" ],
                'got wide character back');
 }
 
@@ -169,7 +169,7 @@ EOF
        is(scalar(@tmp), 1, 'got one part even w/o boundary');
        is($tmp[0]->[0]->[0]->body, "hello world\n", 'body preserved');
        is($tmp[0]->[0]->[1], 0, '$depth is zero');
-       is($tmp[0]->[0]->[2], 0, '@idx is zero');
+       is($tmp[0]->[0]->[2], 1, '@idx is one');
 }
 
 # I guess the following only worked in PI::M because of a happy accident