X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=blobdiff_plain;f=t%2Fmdir_reader.t;h=c927e1a71a5c91c7cd671884bb1d55bb039cfbce;hp=51b38af492d98e119d055c435d163d6c215e5312;hb=4eee5af6011cc8cdefb66c9729952c7eff5c0b0b;hpb=fa3f0cbcd1af5008e56c77e3c46ab60b5eca3a13 diff --git a/t/mdir_reader.t b/t/mdir_reader.t index 51b38af4..c927e1a7 100644 --- a/t/mdir_reader.t +++ b/t/mdir_reader.t @@ -19,4 +19,9 @@ is(maildir_path_flags('/path/to/foo:2,'), '', 'no flags in path'); use_ok 'PublicInbox::InboxWritable', qw(eml_from_path); is(eml_from_path('.'), undef, 'eml_from_path fails on directory'); +is_deeply([PublicInbox::MdirReader::flags2kw('S')], [{ 'seen' => 1 }, []], + "`seen' kw set from flag"); +is_deeply([PublicInbox::MdirReader::flags2kw('Su')], [{ 'seen' => 1 }, ['u']], + 'unknown flag ignored'); + done_testing;