* update test cases

This commit is contained in:
djcb
2011-11-24 00:15:21 +02:00
parent ab0a1f4b82
commit 88dac0fc62
4 changed files with 34 additions and 35 deletions

View File

@ -118,7 +118,7 @@ test_mu_index (void)
store = mu_store_new_read_only (xpath, NULL); store = mu_store_new_read_only (xpath, NULL);
g_assert (store); 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); mu_store_unref (store);
g_free (muhome); g_free (muhome);
@ -231,9 +231,9 @@ test_mu_extract_01 (void)
==, ==,
"MIME-parts in this message:\n" "MIME-parts in this message:\n"
" 0 <none> multipart/mixed [<none>]\n" " 0 <none> multipart/mixed [<none>]\n"
" 1 <none> text/plain [<none>]\n" " 1 <none> text/plain [<none>] (0.0 kB)\n"
" 2 sittingbull.jpg image/jpeg [inline]\n" " 2 sittingbull.jpg image/jpeg [inline] (23.9 kB)\n"
" 3 custer.jpg image/jpeg [inline]\n"); " 3 custer.jpg image/jpeg [inline] (21.6 kB)\n");
/* we expect zero lines of error output */ /* we expect zero lines of error output */
g_assert_cmpuint (newlines_in_output(erroutput),==,0); g_assert_cmpuint (newlines_in_output(erroutput),==,0);

View File

@ -485,10 +485,10 @@ test_mu_query_attach (void)
int i; int i;
QResults queries[] = { QResults queries[] = {
{ "a:sittingbull.jpg", 1}, { "j:sittingbull.jpg", 1},
{ "'attach:sitting*'", 1}, { "'file:sitting*'", 1},
{ "attach:custer", 0}, { "file:custer", 0},
{ "attach:custer.jpg", 1} { "file:custer.jpg", 1}
}; };
xpath = fill_database (MU_TESTMAILDIR2); xpath = fill_database (MU_TESTMAILDIR2);

View File

@ -172,7 +172,7 @@ test_mu_str_ascii_xapian_escape (void)
for (i = 0; i != G_N_ELEMENTS(words); ++i) { for (i = 0; i != G_N_ELEMENTS(words); ++i) {
gchar *a = g_strdup (words[i].word); 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_assert_cmpstr (a, ==, words[i].esc);
g_free (a); g_free (a);
} }

View File

@ -249,4 +249,3 @@ main (int argc, char *argv[])
return g_test_run (); return g_test_run ();
} }