From b626031b6556114d0aa0e35890b849e966ef8b0f Mon Sep 17 00:00:00 2001 From: Mathias Hasselmann Date: Mon, 25 Feb 2013 14:45:12 +0100 Subject: [PATCH] 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 5750b2f..7cb7a18 100644 --- a/tests/libebook/client/test-client-custom-summary.c +++ b/tests/libebook/client/test-client-custom-summary.c @@ -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, 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 -- 2.7.4