mu: add keywords unit-test

This commit is contained in:
Dirk-Jan C. Binnema
2026-06-09 21:15:43 +03:00
committed by Seth Ladygo
parent 01c07d8bcc
commit 5fd639b5f3
2 changed files with 15 additions and 0 deletions

View File

@ -277,6 +277,18 @@ test_mu_msg_tags()
assert_equal_seq_str(msg.tags(), expected_tags);
}
static void
test_mu_msg_tags_keyword()
{
g_test_bug("2933");
const auto msg{Message::make_from_path(MU_TESTMAILDIR4 "/181736.eml").value()};
const auto expected = std::to_array<std::string>({"aap", "noot", "mies"});
assert_equal_seq_str(msg.tags(), expected);
}
static void
test_mu_msg_comp_unix_programmer()
{
@ -380,6 +392,8 @@ main(int argc, char* argv[])
g_test_add_func("/msg/mu-msg-flags", test_mu_msg_flags);
g_test_add_func("/msg/mu-msg-tags", test_mu_msg_tags);
g_test_add_func("/msg/mu-msg-tags-keyword", test_mu_msg_tags_keyword);
g_test_add_func("/msg/mu-msg-references", test_mu_msg_references);
g_test_add_func("/msg/mu-msg-references_dups", test_mu_msg_references_dups);
g_test_add_func("/msg/mu-msg-references_many", test_mu_msg_references_many);

View File

@ -10,6 +10,7 @@ Organization: UseNetServer - www.usenetserver.com
X-Complaints-To: abuse@usenetserver.com
Message-ID: <oktdp.42997$Te.22361@news.usenetserver.com>
Date: 08 Mar 2011 17:04:20 GMT
Keywords: aap, noot,mies
Lines: 27
Xref: uutiset.elisa.fi comp.unix.programmer:181736