GUITESTS: Few compares in tests were wrong way around.
This commit is contained in:
parent
5b940c0c7f
commit
5ec241ee0e
|
@ -25,7 +25,7 @@ void TestProjectFile::loadInexisting()
|
|||
{
|
||||
const QString filepath(QString(SRCDIR) + "/../projectfiles/foo.cppcheck");
|
||||
ProjectFile pfile(filepath);
|
||||
QCOMPARE(false, pfile.Read());
|
||||
QCOMPARE(pfile.Read(), false);
|
||||
}
|
||||
|
||||
void TestProjectFile::loadSimple()
|
||||
|
|
|
@ -24,8 +24,8 @@
|
|||
void TestTranslationHandler::construct()
|
||||
{
|
||||
TranslationHandler handler;
|
||||
QCOMPARE(11, handler.GetNames().size());
|
||||
QCOMPARE(QString("en"), handler.GetCurrentLanguage());
|
||||
QCOMPARE(handler.GetNames().size(), 11);
|
||||
QCOMPARE(handler.GetCurrentLanguage(), QString("en"));
|
||||
}
|
||||
|
||||
QTEST_MAIN(TestTranslationHandler)
|
||||
|
|
|
@ -29,7 +29,7 @@ void TestXmlReportV1::readXml()
|
|||
XmlReportV1 report(filepath);
|
||||
QVERIFY(report.Open());
|
||||
QList<ErrorItem> errors = report.Read();
|
||||
QCOMPARE(6, errors.size());
|
||||
QCOMPARE(errors.size(), 6);
|
||||
|
||||
ErrorItem item = errors[0];
|
||||
QCOMPARE(item.file, QString("test.cxx"));
|
||||
|
|
|
@ -29,7 +29,7 @@ void TestXmlReportV2::readXml()
|
|||
XmlReportV2 report(filepath);
|
||||
QVERIFY(report.Open());
|
||||
QList<ErrorItem> errors = report.Read();
|
||||
QCOMPARE(6, errors.size());
|
||||
QCOMPARE(errors.size(), 6);
|
||||
|
||||
ErrorItem item = errors[0];
|
||||
QCOMPARE(item.file, QString("test.cxx"));
|
||||
|
|
Loading…
Reference in New Issue