mirror of https://github.com/djcb/mu.git
* update test cases
This commit is contained in:
parent
ab0a1f4b82
commit
88dac0fc62
|
@ -118,7 +118,7 @@ test_mu_index (void)
|
|||
store = mu_store_new_read_only (xpath, NULL);
|
||||
g_assert (store);
|
||||
|
||||
g_assert_cmpuint (mu_store_count (store, NULL), ==, 10);
|
||||
g_assert_cmpuint (mu_store_count (store, NULL), ==, 11);
|
||||
mu_store_unref (store);
|
||||
|
||||
g_free (muhome);
|
||||
|
@ -231,9 +231,9 @@ test_mu_extract_01 (void)
|
|||
==,
|
||||
"MIME-parts in this message:\n"
|
||||
" 0 <none> multipart/mixed [<none>]\n"
|
||||
" 1 <none> text/plain [<none>]\n"
|
||||
" 2 sittingbull.jpg image/jpeg [inline]\n"
|
||||
" 3 custer.jpg image/jpeg [inline]\n");
|
||||
" 1 <none> text/plain [<none>] (0.0 kB)\n"
|
||||
" 2 sittingbull.jpg image/jpeg [inline] (23.9 kB)\n"
|
||||
" 3 custer.jpg image/jpeg [inline] (21.6 kB)\n");
|
||||
|
||||
/* we expect zero lines of error output */
|
||||
g_assert_cmpuint (newlines_in_output(erroutput),==,0);
|
||||
|
|
|
@ -485,10 +485,10 @@ test_mu_query_attach (void)
|
|||
int i;
|
||||
|
||||
QResults queries[] = {
|
||||
{ "a:sittingbull.jpg", 1},
|
||||
{ "'attach:sitting*'", 1},
|
||||
{ "attach:custer", 0},
|
||||
{ "attach:custer.jpg", 1}
|
||||
{ "j:sittingbull.jpg", 1},
|
||||
{ "'file:sitting*'", 1},
|
||||
{ "file:custer", 0},
|
||||
{ "file:custer.jpg", 1}
|
||||
};
|
||||
|
||||
xpath = fill_database (MU_TESTMAILDIR2);
|
||||
|
|
|
@ -172,7 +172,7 @@ test_mu_str_ascii_xapian_escape (void)
|
|||
|
||||
for (i = 0; i != G_N_ELEMENTS(words); ++i) {
|
||||
gchar *a = g_strdup (words[i].word);
|
||||
mu_str_ascii_xapian_escape_in_place (a);
|
||||
mu_str_ascii_xapian_escape_in_place (a, FALSE);
|
||||
g_assert_cmpstr (a, ==, words[i].esc);
|
||||
g_free (a);
|
||||
}
|
||||
|
|
|
@ -249,4 +249,3 @@ main (int argc, char *argv[])
|
|||
|
||||
return g_test_run ();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue