summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorDirk-Jan C. Binnema <djcb@djcbsoftware.nl>2010-09-04 14:32:10 +0300
committerDirk-Jan C. Binnema <djcb@djcbsoftware.nl>2010-09-04 14:32:10 +0300
commitb05359d3449e4fe1401c531454516a55150e181d (patch)
tree46b32e426b4544f2f64fedadeb21c23f3b7dc0b0 /src/tests
parent6b3272fb8cb52275963d5147c6df7de9b6436222 (diff)
* add test mail file, update unit test for number
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/Makefile.am5
-rw-r--r--src/tests/test-mu-maildir.c4
-rw-r--r--src/tests/testdir/cur/1283599333.1840_11.cthulhu!2,12
3 files changed, 17 insertions, 4 deletions
diff --git a/src/tests/Makefile.am b/src/tests/Makefile.am
index 68a8590..2c43c25 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 12af607..909d012 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 0000000..727dad0
--- /dev/null
+++ b/src/tests/testdir/cur/1283599333.1840_11.cthulhu!2,
@@ -0,0 +1,12 @@
+From: Frodo Baggins <frodo@example.com>
+To: Bilbo Baggins <bilbo@anotherexample.com>
+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.