Skip to content

Commit

Permalink
[qtcontacts-sqlite] Fix unit tests. Contributes to JB#38781
Browse files Browse the repository at this point in the history
Commit 589dfd9 broke the phone number test by changing
the meaning of , and . characters. Assuming here the unit
test just needs mechanic change of expectation.
  • Loading branch information
pvuorela committed May 19, 2020
1 parent 8d56179 commit 531ec1a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/auto/phonenumber/tst_phonenumber.cpp
Expand Up @@ -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")
Expand Down

0 comments on commit 531ec1a

Please sign in to comment.