tests: Actually use existing country calling code
authorMathias Hasselmann <mathias@openismus.com>
Mon, 25 Feb 2013 13:45:12 +0000 (14:45 +0100)
committerMathias Hasselmann <mathias@openismus.com>
Mon, 25 Feb 2013 13:45:12 +0000 (14:45 +0100)
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
tests/libebook/data/vcards/custom-8.vcf

index 5750b2f..7cb7a18 100644 (file)
@@ -324,17 +324,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,
index 50d3f67..0d341f3 100644 (file)
@@ -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