logsui/logsengine/tsrc/ut_logsengine/src/ut_logsevent.cpp
changeset 8 6c9acdc6adc0
parent 6 41c0a814d878
child 15 76d2cf7a585e
--- a/logsui/logsengine/tsrc/ut_logsengine/src/ut_logsevent.cpp	Fri Jun 11 13:38:41 2010 +0300
+++ b/logsui/logsengine/tsrc/ut_logsengine/src/ut_logsevent.cpp	Thu Jun 24 14:44:14 2010 +0300
@@ -172,16 +172,16 @@
     QtContactsStubsHelper::reset();
     QContactName name;
     QtContactsStubsHelper::setContactNames("firstname", "");
-    QVERIFY(event.parseContactName(name) == "firstname");    
+    QCOMPARE(event.parseContactName(name), QString("firstname"));
     
     QtContactsStubsHelper::setContactNames("firstname", "lastname");
-    QVERIFY(event.parseContactName(name) == "firstname lastname");
+    QCOMPARE(event.parseContactName(name), QString("firstname lastname"));
     
     QtContactsStubsHelper::setContactNames("", "lastname");
-    QVERIFY(event.parseContactName(name) == "lastname");
+    QCOMPARE(event.parseContactName(name), QString("lastname"));
     
     QtContactsStubsHelper::setContactNames("", "");
-    QVERIFY(event.parseContactName(name) == "");
+    QCOMPARE(event.parseContactName(name), QString(""));
 }
 
 void UT_LogsEvent::testSerialization()