phonebookengines/contactsmodel/tsrc/T_CntMatch.cpp
branchRCL_3
changeset 11 2828b4d142c0
parent 9 0d28c1c5b6dd
--- a/phonebookengines/contactsmodel/tsrc/T_CntMatch.cpp	Tue Apr 27 16:23:35 2010 +0300
+++ b/phonebookengines/contactsmodel/tsrc/T_CntMatch.cpp	Tue May 11 16:00:21 2010 +0300
@@ -801,9 +801,20 @@
     CreateContactL(KCntName,KCntSurname,_L("584443049607"),KNullDesC);
     TESTVALUE(CheckPhoneMatchL(_L("4443049607"), KBestMatchingPhoneNumbers),1);
     
+    ResetDatabaseL();
     CreateContactL(KCntName,KCntSurname,_L("401234567"),KNullDesC);
     TESTVALUE(CheckPhoneMatchL(_L("2041234567"), KBestMatchingPhoneNumbers),0);
     
+    ResetDatabaseL();
+    CreateContactL(KCntName,KCntSurname,_L("0401234567"),KNullDesC);
+    CreateContactL(KCntName,KCntSurname,_L("0501234567"),KNullDesC);
+    TESTVALUE(CheckPhoneMatchL(_L("0401234567"), KBestMatchingPhoneNumbers),1);
+    
+    ResetDatabaseL();
+    CreateContactL(KCntName,KCntSurname,_L("020421234567"),KNullDesC);
+    CreateContactL(KCntName,KCntSurname,_L("005021234567"),KNullDesC);
+    TESTVALUE(CheckPhoneMatchL(_L("020421234567"), KBestMatchingPhoneNumbers),1);
+    
     }
 
 /**