From 38c7cc2742f85c5a54c5bfd369c140ce5bd911d7 Mon Sep 17 00:00:00 2001 From: Tristan Van Berkom Date: Sun, 1 Dec 2013 14:40:24 +0900 Subject: test-client-custom-summary: Added test for the 'x-evolution-any-field' NULL special case x-evolution-any-field with a NULL value (or byte) means 'get all contacts'. --- tests/libebook/client/test-client-custom-summary.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/tests/libebook/client/test-client-custom-summary.c b/tests/libebook/client/test-client-custom-summary.c index 3fadc5e41..daef9b5ae 100644 --- a/tests/libebook/client/test-client-custom-summary.c +++ b/tests/libebook/client/test-client-custom-summary.c @@ -399,6 +399,28 @@ main (gint argc, suites[i].custom, FALSE); + /* Special case should not be a fallback query */ + add_client_test ( + suites[i].prefix, + "/AnyFieldContains/NULL", + suites[i].func, + e_book_query_any_field_contains (NULL), + N_CONTACTS, + suites[i].direct, + suites[i].custom, + FALSE); + + /* Special case should not be a fallback query */ + add_client_test ( + suites[i].prefix, + "/AnyFieldContains/\"\"", + suites[i].func, + e_book_query_any_field_contains (""), + N_CONTACTS, + suites[i].direct, + suites[i].custom, + FALSE); + /* Add search tests that fetch contacts */ add_client_test ( suites[i].prefix, -- cgit v1.2.1