[evolution-data-server/openismus-phonenumber-work] tests: Actually also test phone query execution



commit 8f37c9cfa03046c9b9f50fac41d4eb814ac35a64
Author: Mathias Hasselmann <mathias openismus com>
Date:   Fri Dec 7 14:24:34 2012 +0100

    tests: Actually also test phone query execution
    
    Pretty sure I had this before, no idea when I dropped this.

 tests/libebook/client/test-client-custom-summary.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/tests/libebook/client/test-client-custom-summary.c b/tests/libebook/client/test-client-custom-summary.c
index 1f27fe7..f8ad080 100644
--- a/tests/libebook/client/test-client-custom-summary.c
+++ b/tests/libebook/client/test-client-custom-summary.c
@@ -296,6 +296,15 @@ main (gint argc,
 	add_client_test ("/client/search/exact/name", search_test, book_client,
 	                 e_book_query_vcard_field_test(EVC_N, E_BOOK_QUERY_IS, "Janet"),
 	                 1);
+	add_client_test ("/client/search/eqphone/exact/phone", search_test, book_client,
+	                 e_book_query_vcard_field_test(EVC_TEL, E_BOOK_QUERY_EQUALS_PHONE_NUMBER, "+1 221.542.3789"),
+	                 1);
+	add_client_test ("/client/search/eqphone/national/phone", search_test, book_client,
+	                 e_book_query_vcard_field_test(EVC_TEL, E_BOOK_QUERY_EQUALS_NATIONAL_PHONE_NUMBER, "221.542.3789"),
+	                 1);
+	add_client_test ("/client/search/eqphone/national/phone", search_test, book_client,
+	                 e_book_query_vcard_field_test(EVC_TEL, E_BOOK_QUERY_EQUALS_SHORT_PHONE_NUMBER, "5423789"),
+	                 1);
 
 	/* Add search tests that fetch uids */
 	add_client_test ("/client/search-uid/exact/name", uid_test, book_client,



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