From b05359d3449e4fe1401c531454516a55150e181d Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Sat, 4 Sep 2010 14:32:10 +0300 Subject: [PATCH] * add test mail file, update unit test for number --- src/tests/Makefile.am | 5 +++-- src/tests/test-mu-maildir.c | 4 ++-- src/tests/testdir/cur/1283599333.1840_11.cthulhu!2, | 12 ++++++++++++ 3 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 src/tests/testdir/cur/1283599333.1840_11.cthulhu!2, diff --git a/src/tests/Makefile.am b/src/tests/Makefile.am index 68a85902..2c43c25b 100644 --- a/src/tests/Makefile.am +++ b/src/tests/Makefile.am @@ -58,7 +58,7 @@ libtestmucommon_la_LIBADD= ../libmu.la # use the (also supported) version with '!' instead. We could escape # the : with \: but automake does not recognize that.... -# 11 messages, the '.ignore' message should be ignored +# 12 messages, the '.ignore' message should be ignored # when indexing EXTRA_DIST= \ testdir/tmp/1220863087.12663.ignore \ @@ -71,4 +71,5 @@ EXTRA_DIST= \ testdir/cur/1220863087.12663_15.mindcrime!2,PS \ testdir/cur/1220863087.12663_19.mindcrime!2,S \ testdir/cur/1220863042.12663_1.mindcrime!2,S \ - testdir/cur/1220863060.12663_3.mindcrime!2,S + testdir/cur/1220863060.12663_3.mindcrime!2,S \ + testdir/cur/1283599333.1840_11.cthulhu!2, diff --git a/src/tests/test-mu-maildir.c b/src/tests/test-mu-maildir.c index 12af6079..909d0121 100644 --- a/src/tests/test-mu-maildir.c +++ b/src/tests/test-mu-maildir.c @@ -193,7 +193,7 @@ test_mu_maildir_walk_01 (void) &data); g_assert_cmpuint (MU_OK, ==, rv); - g_assert_cmpuint (data._file_count, ==, 10); + g_assert_cmpuint (data._file_count, ==, 11); g_assert_cmpuint (data._dir_entered,==, 5); g_assert_cmpuint (data._dir_left,==, 5); @@ -224,7 +224,7 @@ test_mu_maildir_walk_02 (void) &data); g_assert_cmpuint (MU_OK, ==, rv); - g_assert_cmpuint (data._file_count, ==, 6); + g_assert_cmpuint (data._file_count, ==, 7); g_assert_cmpuint (data._dir_entered,==, 4); g_assert_cmpuint (data._dir_left,==, 4); diff --git a/src/tests/testdir/cur/1283599333.1840_11.cthulhu!2, b/src/tests/testdir/cur/1283599333.1840_11.cthulhu!2, new file mode 100644 index 00000000..727dad09 --- /dev/null +++ b/src/tests/testdir/cur/1283599333.1840_11.cthulhu!2, @@ -0,0 +1,12 @@ +From: Frodo Baggins +To: Bilbo Baggins +Subject: Greetings from =?UTF-8?B?TG90aGzDs3JpZW4=?= +User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/24.0 Mule/6.0 (HANACHIRUSATO) +Fcc: .sent +Organization: The Fellowship of the Ring +MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + + +Let's write some fünkÿ text using umlauts.