[evolution-data-server/sqlite-refactor: 11/13] test-client-custom-summary: Added tests for the NOT queries



commit befdb4fd69f61c278febc0fd12fe55eba7b875d4
Author: Tristan Van Berkom <tristanvb openismus com>
Date:   Mon Nov 25 19:07:44 2013 +0900

    test-client-custom-summary: Added tests for the NOT queries

 tests/libebook/client/test-client-custom-summary.c |   32 ++++++++++++++++++++
 1 files changed, 32 insertions(+), 0 deletions(-)
---
diff --git a/tests/libebook/client/test-client-custom-summary.c 
b/tests/libebook/client/test-client-custom-summary.c
index b34e414..ab5fc7b 100644
--- a/tests/libebook/client/test-client-custom-summary.c
+++ b/tests/libebook/client/test-client-custom-summary.c
@@ -511,6 +511,38 @@ main (gint argc,
                        suites[i].custom,
                        FALSE);
 
+               add_client_test (
+                       suites[i].prefix,
+                       "/Not/JacksonFamily",
+                       suites[i].func,
+                       e_book_query_not (
+                               e_book_query_field_test (
+                                       E_CONTACT_FULL_NAME,
+                                       E_BOOK_QUERY_ENDS_WITH,
+                                       "jackson"),
+                               TRUE),
+                       /* There are 2 jackson contacts */
+                       N_CONTACTS - 2,
+                       suites[i].direct,
+                       suites[i].custom,
+                       FALSE);
+
+               add_client_test (
+                       suites[i].prefix,
+                       "/Not/DotComEmail",
+                       suites[i].func,
+                       e_book_query_not (
+                               e_book_query_field_test (
+                                       E_CONTACT_EMAIL,
+                                       E_BOOK_QUERY_ENDS_WITH,
+                                       ".com"),
+                               TRUE),
+                       /* There are 9 contacts with emails ending in ".com"  */
+                       N_CONTACTS - 9,
+                       suites[i].direct,
+                       suites[i].custom,
+                       FALSE);
+
                /*********************************************
                 *         PHONE NUMBER QUERIES FOLLOW       *
                 *********************************************/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]