mirror of https://github.com/djcb/mu.git
* test-mu-{cmd,msg,query}.c: update (c) year
This commit is contained in:
parent
c6c3dd99c1
commit
2e717a92f9
|
@ -409,6 +409,8 @@ test_mu_view_01 (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
test_mu_mkdir_01 (void)
|
test_mu_mkdir_01 (void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
** Copyright (C) 2008-2010 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
** Copyright (C) 2008-2011 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
||||||
**
|
**
|
||||||
** This program is free software; you can redistribute it and/or modify it
|
** This program is free software; you can redistribute it and/or modify it
|
||||||
** under the terms of the GNU General Public License as published by the
|
** under the terms of the GNU General Public License as published by the
|
||||||
|
@ -214,6 +214,31 @@ test_mu_msg_04 (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
static void
|
||||||
|
test_mu_msg_05 (void)
|
||||||
|
{
|
||||||
|
MuMsg *msg;
|
||||||
|
|
||||||
|
msg = mu_msg_new (MU_TESTMAILDIR
|
||||||
|
"cur/1305664394.2171_402.cthulhu!2,",
|
||||||
|
NULL, NULL);
|
||||||
|
|
||||||
|
g_assert_cmpstr (mu_msg_get_to(msg),
|
||||||
|
==, "Helmut Kröger <hk@testmu.xxx>");
|
||||||
|
g_assert_cmpstr (mu_msg_get_subject(msg),
|
||||||
|
==, "Motörhead");
|
||||||
|
g_assert_cmpstr (mu_msg_get_from(msg),
|
||||||
|
==, "Mü <testmu@testmu.xx>");
|
||||||
|
g_assert_cmpuint (mu_msg_get_prio(msg), /* 'low' */
|
||||||
|
==, MU_MSG_PRIO_NORMAL);
|
||||||
|
g_assert_cmpuint (mu_msg_get_date(msg),
|
||||||
|
==, 0);
|
||||||
|
|
||||||
|
mu_msg_unref (msg);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* static gboolean */
|
/* static gboolean */
|
||||||
/* ignore_error (const char* log_domain, GLogLevelFlags log_level, const gchar* msg, */
|
/* ignore_error (const char* log_domain, GLogLevelFlags log_level, const gchar* msg, */
|
||||||
|
@ -224,6 +249,9 @@ test_mu_msg_04 (void)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
main (int argc, char *argv[])
|
main (int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
@ -239,7 +267,9 @@ main (int argc, char *argv[])
|
||||||
test_mu_msg_03);
|
test_mu_msg_03);
|
||||||
g_test_add_func ("/mu-msg/mu-msg-04",
|
g_test_add_func ("/mu-msg/mu-msg-04",
|
||||||
test_mu_msg_04);
|
test_mu_msg_04);
|
||||||
|
g_test_add_func ("/mu-msg/mu-msg-05",
|
||||||
|
test_mu_msg_05);
|
||||||
|
|
||||||
g_log_set_handler (NULL,
|
g_log_set_handler (NULL,
|
||||||
G_LOG_LEVEL_MASK | G_LOG_FLAG_FATAL| G_LOG_FLAG_RECURSION,
|
G_LOG_LEVEL_MASK | G_LOG_FLAG_FATAL| G_LOG_FLAG_RECURSION,
|
||||||
(GLogFunc)black_hole, NULL);
|
(GLogFunc)black_hole, NULL);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
** Copyright (C) 2008-2010 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
** Copyright (C) 2008-2011 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
||||||
**
|
**
|
||||||
** This program is free software; you can redistribute it and/or modify it
|
** This program is free software; you can redistribute it and/or modify it
|
||||||
** under the terms of the GNU General Public License as published by the
|
** under the terms of the GNU General Public License as published by the
|
||||||
|
|
Loading…
Reference in New Issue