mirror of https://github.com/djcb/mu.git
* add unit tests for the mime, attachment contents searching; they even pass
This commit is contained in:
parent
6b417bc947
commit
57e3ae19d8
|
@ -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 \
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue