[evolution-data-server/openismus-work-3-8: 109/112] test-client-custom-summary.c: Added test for transliterated queries
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/openismus-work-3-8: 109/112] test-client-custom-summary.c: Added test for transliterated queries
- Date: Fri, 30 Aug 2013 15:35:42 +0000 (UTC)
commit c7be1c87d0d46512688a49f14b0d10beefc9a4ec
Author: Tristan Van Berkom <tristanvb openismus com>
Date: Fri Aug 30 14:25:30 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]