[evolution-data-server/openismus-work-3-8] test-client-custom-summary.c: Added test for transliterated queries



commit 6d8f2cbf0203a1091d0854d945db7710d5168370
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Thu Aug 29 18:52:00 2013 +0200

    test-client-custom-summary.c: Added test for transliterated queries
    
    The new test tests that transliterated queries work on the multi valued
    fields, specifically we are testing it with E_CONTACT_EMAIL and a
    contact containing chinese text.

 tests/libebook/client/test-client-custom-summary.c |   13 +++++++++++++
 tests/libebook/data/vcards/custom-13.vcf           |    2 +-
 2 files changed, 14 insertions(+), 1 deletions(-)
---
diff --git a/tests/libebook/client/test-client-custom-summary.c 
b/tests/libebook/client/test-client-custom-summary.c
index 3643c26..1035482 100644
--- a/tests/libebook/client/test-client-custom-summary.c
+++ b/tests/libebook/client/test-client-custom-summary.c
@@ -804,6 +804,19 @@ main (gint argc,
                        suites[i].custom,
                        FALSE);
 
+               add_client_test (
+                       suites[i].prefix,
+                       "/Transliterated/Prefix/Email/几",
+                       suites[i].func,
+                       e_book_query_field_test (
+                               E_CONTACT_EMAIL,
+                               E_BOOK_QUERY_TRANSLIT_BEGINS_WITH,
+                               "几"),
+                       2,
+                       suites[i].direct,
+                       suites[i].custom,
+                       FALSE);
+
        }
 
        ret = e_test_server_utils_run ();
diff --git a/tests/libebook/data/vcards/custom-13.vcf b/tests/libebook/data/vcards/custom-13.vcf
index c4ecc22..f13426d 100644
--- a/tests/libebook/data/vcards/custom-13.vcf
+++ b/tests/libebook/data/vcards/custom-13.vcf
@@ -2,5 +2,5 @@ BEGIN:VCARD
 UID:custom-13
 N:警察;懂吗
 TEL;HOME:1.800 555 PONY
-EMAIL;TYPE=home,work:dude china net
+EMAIL;TYPE=home,work:警察 china net
 END:VCARD


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