X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Fmid.t;h=e2d8dcbf6ccd26be888e71b42b3c4ed02e84a705;hb=HEAD;hp=0ad81d7da8be71011bdb0cef047ecaec73519053;hpb=e6b7a7f5f70fb89a54ff158bc6c8b564149947e5;p=public-inbox.git diff --git a/t/mid.t b/t/mid.t index 0ad81d7d..e2d8dcbf 100644 --- a/t/mid.t +++ b/t/mid.t @@ -1,8 +1,8 @@ -# Copyright (C) 2016-2020 all contributors +# Copyright (C) 2016-2021 all contributors # License: AGPL-3.0+ use strict; use Test::More; -use PublicInbox::MIME; +use PublicInbox::Eml; use PublicInbox::MID qw(mid_escape mids references mids_for_index id_compress); is(mid_escape('foo!@(bar)'), 'foo!@(bar)'); @@ -16,7 +16,7 @@ like(id_compress('foo%bar@wtf'), qr/\A[a-f0-9]{40}\z/, is(id_compress('foobar-wtf'), 'foobar-wtf', 'regular ID not compressed'); { - my $mime = PublicInbox::MIME->new("Message-ID: \n\n"); + my $mime = PublicInbox::Eml->new("Message-ID: \n\n"); $mime->header_set('X-Alt-Message-ID', ''); is_deeply(['mid-1@a'], mids($mime->header_obj), 'mids in common case'); $mime->header_set('Message-Id', '', '');