summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTristan Van Berkom <tristanvb@openismus.com>2013-11-13 19:08:31 +0900
committerTristan Van Berkom <tristanvb@openismus.com>2013-11-14 15:25:24 +0900
commit5d9210f0e015074cd74937849cfc6c76007cbb8d (patch)
treec1ea2afb78498b2cbb14965e6b1cc642f7b4dfdc /tests
parent4c13ac4eb08c117f3f47ee86c8e34c38e978e867 (diff)
downloadevolution-data-server-5d9210f0e015074cd74937849cfc6c76007cbb8d.tar.gz
test-client-custom-summary.c: Added exact email match test.
Diffstat (limited to 'tests')
-rw-r--r--tests/libebook/client/test-client-custom-summary.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/libebook/client/test-client-custom-summary.c b/tests/libebook/client/test-client-custom-summary.c
index fb3dc28c0..b37d0bae8 100644
--- a/tests/libebook/client/test-client-custom-summary.c
+++ b/tests/libebook/client/test-client-custom-summary.c
@@ -47,6 +47,7 @@ setup_custom_book (ESource *scratch,
0);
e_source_backend_summary_setup_set_indexed_fields (
setup,
+ E_CONTACT_EMAIL, E_BOOK_INDEX_PREFIX,
E_CONTACT_TEL, E_BOOK_INDEX_SUFFIX,
E_CONTACT_TEL, E_BOOK_INDEX_PHONE,
E_CONTACT_FULL_NAME, E_BOOK_INDEX_PREFIX,
@@ -465,6 +466,19 @@ main (gint argc,
suites[i].custom,
FALSE);
+ add_client_test (
+ suites[i].prefix,
+ "/Exact/Email",
+ suites[i].func,
+ e_book_query_field_test (
+ E_CONTACT_EMAIL,
+ E_BOOK_QUERY_IS,
+ "micheal@jackson.com"),
+ 1,
+ suites[i].direct,
+ suites[i].custom,
+ FALSE);
+
/*********************************************
* PHONE NUMBER QUERIES FOLLOW *
*********************************************/