* add unit tests for the mime, attachment contents searching; they even pass

This commit is contained in:
djcb 2011-12-01 21:18:56 +02:00
parent 6b417bc947
commit 57e3ae19d8
5 changed files with 10 additions and 5 deletions

View File

@ -139,9 +139,9 @@ EXTRA_DIST= \
testdir2/Foo/cur/arto.eml \
testdir2/Foo/tmp/.noindex \
testdir2/Foo/new/.noindex \
testdir2/wom bat/cur/atomic \
testdir2/wom bat/cur/rfc822.1 \
testdir2/wom bat/cur/rfc822.2 \
testdir2/wom_bat/cur/atomic \
testdir2/wom_bat/cur/rfc822.1 \
testdir2/wom_bat/cur/rfc822.2 \
testdir3/tree \
testdir3/tree/new \
testdir3/tree/new/.noindex \

View File

@ -194,11 +194,14 @@ test_mu_find_mime (void)
static void
test_mu_find_text_in_rfc822 (void)
{
search ("embed:dancing", 1);
search ("e:curious", 1);
search ("embed:with", 2);
search ("e:karjala", 0);
search ("embed:navigation", 1);
}
/* some more tests */
static void
test_mu_find_03 (void)
@ -687,7 +690,9 @@ main (int argc, char *argv[])
g_test_add_func ("/mu-cmd/test-mu-find-02", test_mu_find_02);
g_test_add_func ("/mu-cmd/test-mu-find-file", test_mu_find_file);
g_test_add_func ("/mu-cmd/test-mu-find-mime", test_mu_find_mime);
g_test_add_func ("/mu-cmd/test-mu-find-text-in-rfc822",
test_mu_find_text_in_rfc822);