[evolution-data-server/openismus-work-3-8] Revert "test-client-custom-summary: Unsupported transliterated queries."
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/openismus-work-3-8] Revert "test-client-custom-summary: Unsupported transliterated queries."
- Date: Thu, 5 Dec 2013 08:10:17 +0000 (UTC)
commit f20cce5739235bbbe78c59fe1eb5f022c41d14c4
Author: Tristan Van Berkom <tristan upstairslabs com>
Date: Thu Dec 5 15:06:43 2013 +0900
Revert "test-client-custom-summary: Unsupported transliterated queries."
This reverts commit 129901a6bb0100bbec3f1419d7e4472282622b79.
tests/libebook/client/test-client-custom-summary.c | 162 ++++++++++----------
1 files changed, 81 insertions(+), 81 deletions(-)
---
diff --git a/tests/libebook/client/test-client-custom-summary.c
b/tests/libebook/client/test-client-custom-summary.c
index e4b3467..daef9b5 100644
--- a/tests/libebook/client/test-client-custom-summary.c
+++ b/tests/libebook/client/test-client-custom-summary.c
@@ -1209,87 +1209,87 @@ main (gint argc,
* with a transliterated "几" match both "Jim Morrison" and
* "警察 懂吗"
*/
- /* add_client_test ( */
- /* suites[i].prefix, */
- /* "/Transliterated/Prefix/FullName/几", */
- /* suites[i].func, */
- /* e_book_query_field_test ( */
- /* E_CONTACT_FULL_NAME, */
- /* E_BOOK_QUERY_TRANSLIT_BEGINS_WITH, */
- /* "几"), */
- /* 2, */
- /* suites[i].direct, */
- /* suites[i].custom, */
- /* FALSE); */
-
- /* /\* Same results as above, only the query input is provided in Latin script *\/ */
- /* add_client_test ( */
- /* suites[i].prefix, */
- /* "/Transliterated/Prefix/FullName/Ji", */
- /* suites[i].func, */
- /* e_book_query_field_test ( */
- /* E_CONTACT_FULL_NAME, */
- /* E_BOOK_QUERY_TRANSLIT_BEGINS_WITH, */
- /* "Ji"), */
- /* 2, */
- /* suites[i].direct, */
- /* suites[i].custom, */
- /* FALSE); */
-
- /* /\* Check if anything contains "Ma", this should */
- /* * only find one match for "警察 懂吗" *\/ */
- /* add_client_test ( */
- /* suites[i].prefix, */
- /* "/Transliterated/Contains/FullName/Ma", */
- /* suites[i].func, */
- /* e_book_query_field_test ( */
- /* E_CONTACT_FULL_NAME, */
- /* E_BOOK_QUERY_TRANSLIT_CONTAINS, */
- /* "Ma"), */
- /* 1, */
- /* suites[i].direct, */
- /* suites[i].custom, */
- /* FALSE); */
-
-
- /* add_client_test ( */
- /* suites[i].prefix, */
- /* "/Transliterated/Contains/FullName/Ma", */
- /* suites[i].func, */
- /* e_book_query_field_test ( */
- /* E_CONTACT_FULL_NAME, */
- /* E_BOOK_QUERY_TRANSLIT_CONTAINS, */
- /* "Ma"), */
- /* 1, */
- /* suites[i].direct, */
- /* suites[i].custom, */
- /* FALSE); */
-
- /* add_client_test ( */
- /* suites[i].prefix, */
- /* "/Transliterated/Suffix/FullName/Cha", */
- /* suites[i].func, */
- /* e_book_query_field_test ( */
- /* E_CONTACT_FULL_NAME, */
- /* E_BOOK_QUERY_TRANSLIT_ENDS_WITH, */
- /* "Cha"), */
- /* 1, */
- /* suites[i].direct, */
- /* 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); */
+ add_client_test (
+ suites[i].prefix,
+ "/Transliterated/Prefix/FullName/几",
+ suites[i].func,
+ e_book_query_field_test (
+ E_CONTACT_FULL_NAME,
+ E_BOOK_QUERY_TRANSLIT_BEGINS_WITH,
+ "几"),
+ 2,
+ suites[i].direct,
+ suites[i].custom,
+ FALSE);
+
+ /* Same results as above, only the query input is provided in Latin script */
+ add_client_test (
+ suites[i].prefix,
+ "/Transliterated/Prefix/FullName/Ji",
+ suites[i].func,
+ e_book_query_field_test (
+ E_CONTACT_FULL_NAME,
+ E_BOOK_QUERY_TRANSLIT_BEGINS_WITH,
+ "Ji"),
+ 2,
+ suites[i].direct,
+ suites[i].custom,
+ FALSE);
+
+ /* Check if anything contains "Ma", this should
+ * only find one match for "警察 懂吗" */
+ add_client_test (
+ suites[i].prefix,
+ "/Transliterated/Contains/FullName/Ma",
+ suites[i].func,
+ e_book_query_field_test (
+ E_CONTACT_FULL_NAME,
+ E_BOOK_QUERY_TRANSLIT_CONTAINS,
+ "Ma"),
+ 1,
+ suites[i].direct,
+ suites[i].custom,
+ FALSE);
+
+
+ add_client_test (
+ suites[i].prefix,
+ "/Transliterated/Contains/FullName/Ma",
+ suites[i].func,
+ e_book_query_field_test (
+ E_CONTACT_FULL_NAME,
+ E_BOOK_QUERY_TRANSLIT_CONTAINS,
+ "Ma"),
+ 1,
+ suites[i].direct,
+ suites[i].custom,
+ FALSE);
+
+ add_client_test (
+ suites[i].prefix,
+ "/Transliterated/Suffix/FullName/Cha",
+ suites[i].func,
+ e_book_query_field_test (
+ E_CONTACT_FULL_NAME,
+ E_BOOK_QUERY_TRANSLIT_ENDS_WITH,
+ "Cha"),
+ 1,
+ suites[i].direct,
+ 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]