[evolution-data-server/openismus-work] tests: Actually use existing country calling code



commit 090e1c2823816e5596479e7665e96181bfbe55ed
Author: Mathias Hasselmann <mathias openismus com>
Date:   Mon Feb 25 14:45:12 2013 +0100

    tests: Actually use existing country calling code
    
    Some tests assumed that the national portion of "+3-221-5423789" would
    match the national portion of "+1-221-5423789". Sadly the country
    calling of of that number is "+32", not "+3" like assumed.

 tests/libebook/client/test-client-custom-summary.c |    6 +++---
 tests/libebook/data/vcards/custom-8.vcf            |    2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/tests/libebook/client/test-client-custom-summary.c 
b/tests/libebook/client/test-client-custom-summary.c
index d2c6843..51c831f 100644
--- a/tests/libebook/client/test-client-custom-summary.c
+++ b/tests/libebook/client/test-client-custom-summary.c
@@ -318,17 +318,17 @@ main (gint argc,
                 * are specifically in the active country code.
                 *
                 * | Active Country Code: +1 | Query: 221.542.3789 | vCard Data: +1-221-5423789 | Matches: 
yes |
-                * | Active Country Code: +1 | Query: 221.542.3789 | vCard Data: +3-221-5423789 | Matches: no 
 |
+                * | Active Country Code: +1 | Query: 221.542.3789 | vCard Data: +31-221-5423789 | Matches: 
no  |
                 */
                add_client_test (suites[i].prefix, "/EqPhone/National", suites[i].func,
                                 e_book_query_field_test (E_CONTACT_TEL, 
E_BOOK_QUERY_EQUALS_NATIONAL_PHONE_NUMBER, "221.542.3789"),
-                                1, suites[i].direct, suites[i].custom);
+                                2, suites[i].direct, suites[i].custom);
 
                /* Test that a query term with a specified country returns only vCards that 
                 * are specifically in the specified country code.
                 *
                 * | Active Country Code: +1 | Query: +49 221.542.3789 | vCard Data: +1-221-5423789 | 
Matches: no |
-                * | Active Country Code: +1 | Query: +49 221.542.3789 | vCard Data: +3-221-5423789 | 
Matches: no |
+                * | Active Country Code: +1 | Query: +49 221.542.3789 | vCard Data: +31-221-5423789 | 
Matches: no |
                 */
                add_client_test (suites[i].prefix, "/EqPhone/National/CountryMismatch", suites[i].func,
                                 e_book_query_field_test (E_CONTACT_TEL,
diff --git a/tests/libebook/data/vcards/custom-8.vcf b/tests/libebook/data/vcards/custom-8.vcf
index 50d3f67..0d341f3 100644
--- a/tests/libebook/data/vcards/custom-8.vcf
+++ b/tests/libebook/data/vcards/custom-8.vcf
@@ -1,5 +1,5 @@
 BEGIN:VCARD
 FN:Purple Pony
-TEL;HOME:+3-221-5423789
+TEL;HOME:+31-221-5423789
 EMAIL;TYPE=home,work:purple pony com
 END:VCARD


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