From 531ec1a6c970d5b05d344f1f4568fea0e3557326 Mon Sep 17 00:00:00 2001 From: Pekka Vuorela Date: Tue, 19 May 2020 17:52:41 +0300 Subject: [PATCH] [qtcontacts-sqlite] Fix unit tests. Contributes to JB#38781 Commit 589dfd969db broke the phone number test by changing the meaning of , and . characters. Assuming here the unit test just needs mechanic change of expectation. --- tests/auto/phonenumber/tst_phonenumber.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/auto/phonenumber/tst_phonenumber.cpp b/tests/auto/phonenumber/tst_phonenumber.cpp index ea99372..91f1bfe 100644 --- a/tests/auto/phonenumber/tst_phonenumber.cpp +++ b/tests/auto/phonenumber/tst_phonenumber.cpp @@ -186,17 +186,17 @@ void tst_PhoneNumber::normalization_data() QTest::newRow("punctuation") << "12-34.567.-890" << "12-34.567.-890" - << "12-34.567.-890" - << "1234567890" - << "1234567890" + << "12-34" + << "1234.567.890" + << "1234.567.890" << true; QTest::newRow("invalid punctuation") << "12_34,567,|890" - << "1234567890" - << "1234567890" - << "1234567890" - << "1234567890" + << "1234,567,890" + << "1234" + << "1234,567,890" + << "1234,567,890" << false; QTest::newRow("plus 1")