logsui/logscntfinder/tsrc/ut_logscntfinder/src/ut_logscntentry.cpp
changeset 14 f27aebe284bb
parent 4 e52d42f9500c
child 15 76d2cf7a585e
equal deleted inserted replaced
11:64a47b97e1e1 14:f27aebe284bb
   624 
   624 
   625     mEntry->setFirstName( QString("Alice 028") );
   625     mEntry->setFirstName( QString("Alice 028") );
   626     mEntry->setLastName( QString( "Ming" ) );
   626     mEntry->setLastName( QString( "Ming" ) );
   627     QVERIFY( mEntry->match( PATTERN( "02806" ) ) );
   627     QVERIFY( mEntry->match( PATTERN( "02806" ) ) );
   628     QVERIFY( mEntry->match( PATTERN( "0280" ) ) );//not supported
   628     QVERIFY( mEntry->match( PATTERN( "0280" ) ) );//not supported
       
   629 
       
   630     mEntry->setFirstName( QString("Ali") + QString( QChar(3) ) + QString("ce") );
       
   631     QVERIFY( mEntry->match( PATTERN( "2" ) ) );//A
       
   632     QVERIFY( mEntry->match( PATTERN( "254" ) ) );//Ali
       
   633     QVERIFY( !mEntry->match( PATTERN( "25423" ) ) );//Alice
   629     
   634     
   630     mEntry->mType = LogsCntEntry::EntryTypeContact;
   635     mEntry->mType = LogsCntEntry::EntryTypeContact;
   631     QVERIFY( !mEntry->match( PATTERN( "+202" ) ) );
   636     QVERIFY( !mEntry->match( PATTERN( "+202" ) ) );
   632     
   637     
   633     mEntry->setFirstName( QString( "0J0hn" ) );
   638     mEntry->setFirstName( QString( "0J0hn" ) );