2011-04-27 10:05:43 +00:00
|
|
|
********* Start testing of tst_Cmptest *********
|
2011-09-22 07:40:45 +00:00
|
|
|
Config: Using QTest library @INSERT_QT_VERSION_HERE@, Qt @INSERT_QT_VERSION_HERE@
|
2011-04-27 10:05:43 +00:00
|
|
|
PASS : tst_Cmptest::initTestCase()
|
|
|
|
PASS : tst_Cmptest::compare_boolfuncs()
|
|
|
|
PASS : tst_Cmptest::compare_pointerfuncs()
|
|
|
|
FAIL! : tst_Cmptest::compare_tostring(int, string) Compared values are not the same
|
|
|
|
Actual (actual): QVariant(int,123)
|
|
|
|
Expected (expected): QVariant(QString,hi)
|
2011-12-19 10:33:07 +00:00
|
|
|
Loc: [tst_cmptest.cpp(214)]
|
2011-04-27 10:05:43 +00:00
|
|
|
FAIL! : tst_Cmptest::compare_tostring(null hash, invalid) Compared values are not the same
|
|
|
|
Actual (actual): QVariant(QVariantHash)
|
|
|
|
Expected (expected): QVariant()
|
2011-12-19 10:33:07 +00:00
|
|
|
Loc: [tst_cmptest.cpp(214)]
|
2011-04-27 10:05:43 +00:00
|
|
|
FAIL! : tst_Cmptest::compare_tostring(string, null user type) Compared values are not the same
|
|
|
|
Actual (actual): QVariant(QString,A simple string)
|
|
|
|
Expected (expected): QVariant(PhonyClass)
|
2011-12-19 10:33:07 +00:00
|
|
|
Loc: [tst_cmptest.cpp(214)]
|
2011-04-27 10:05:43 +00:00
|
|
|
FAIL! : tst_Cmptest::compare_tostring(both non-null user type) Compared values are not the same
|
|
|
|
Actual (actual): QVariant(PhonyClass,<value not representable as string>)
|
|
|
|
Expected (expected): QVariant(PhonyClass,<value not representable as string>)
|
2011-12-19 10:33:07 +00:00
|
|
|
Loc: [tst_cmptest.cpp(214)]
|
2011-12-13 08:02:46 +00:00
|
|
|
FAIL! : tst_Cmptest::compareQStringLists(last item different) Compared QStringLists differ at index 2.
|
2011-12-13 07:26:36 +00:00
|
|
|
Actual (opA) : 'string3'
|
|
|
|
Expected (opB) : 'DIFFERS'
|
2011-12-19 10:33:07 +00:00
|
|
|
Loc: [tst_cmptest.cpp(308)]
|
2011-12-13 08:02:46 +00:00
|
|
|
FAIL! : tst_Cmptest::compareQStringLists(second-last item different) Compared QStringLists differ at index 2.
|
2011-12-13 07:26:36 +00:00
|
|
|
Actual (opA) : 'string3'
|
|
|
|
Expected (opB) : 'DIFFERS'
|
2011-12-19 10:33:07 +00:00
|
|
|
Loc: [tst_cmptest.cpp(308)]
|
2011-12-13 08:02:46 +00:00
|
|
|
FAIL! : tst_Cmptest::compareQStringLists(prefix) Compared QStringLists have different sizes.
|
2011-12-13 07:26:36 +00:00
|
|
|
Actual (opA) size : '2'
|
|
|
|
Expected (opB) size: '1'
|
2011-12-19 10:33:07 +00:00
|
|
|
Loc: [tst_cmptest.cpp(308)]
|
2011-12-13 08:02:46 +00:00
|
|
|
FAIL! : tst_Cmptest::compareQStringLists(short list second) Compared QStringLists have different sizes.
|
2011-12-13 07:26:36 +00:00
|
|
|
Actual (opA) size : '12'
|
|
|
|
Expected (opB) size: '1'
|
2011-12-19 10:33:07 +00:00
|
|
|
Loc: [tst_cmptest.cpp(308)]
|
2011-12-13 08:02:46 +00:00
|
|
|
FAIL! : tst_Cmptest::compareQStringLists(short list first) Compared QStringLists have different sizes.
|
2011-12-13 07:26:36 +00:00
|
|
|
Actual (opA) size : '1'
|
|
|
|
Expected (opB) size: '12'
|
2011-12-19 10:33:07 +00:00
|
|
|
Loc: [tst_cmptest.cpp(308)]
|
|
|
|
FAIL! : tst_Cmptest::compareQPixmaps(one null) Compared QPixmaps differ.
|
|
|
|
Actual (opA).isNull() : 1
|
|
|
|
Expected (opB).isNull(): 0
|
|
|
|
Loc: [tst_cmptest.cpp(333)]
|
|
|
|
FAIL! : tst_Cmptest::compareQPixmaps(other null) Compared QPixmaps differ.
|
|
|
|
Actual (opA).isNull() : 0
|
|
|
|
Expected (opB).isNull(): 1
|
|
|
|
Loc: [tst_cmptest.cpp(333)]
|
|
|
|
FAIL! : tst_Cmptest::compareQPixmaps(different size) Compared QPixmaps differ in size.
|
|
|
|
Actual (opA) : 11x20
|
|
|
|
Expected (opB): 20x20
|
|
|
|
Loc: [tst_cmptest.cpp(333)]
|
|
|
|
FAIL! : tst_Cmptest::compareQPixmaps(different pixels) Compared values are not the same
|
|
|
|
Loc: [tst_cmptest.cpp(333)]
|
|
|
|
FAIL! : tst_Cmptest::compareQImages(one null) Compared QImages differ.
|
|
|
|
Actual (opA).isNull() : 1
|
|
|
|
Expected (opB).isNull(): 0
|
|
|
|
Loc: [tst_cmptest.cpp(360)]
|
|
|
|
FAIL! : tst_Cmptest::compareQImages(other null) Compared QImages differ.
|
|
|
|
Actual (opA).isNull() : 0
|
|
|
|
Expected (opB).isNull(): 1
|
|
|
|
Loc: [tst_cmptest.cpp(360)]
|
|
|
|
FAIL! : tst_Cmptest::compareQImages(different size) Compared QImages differ in size.
|
|
|
|
Actual (opA) : 11x20
|
|
|
|
Expected (opB): 20x20
|
|
|
|
Loc: [tst_cmptest.cpp(360)]
|
|
|
|
FAIL! : tst_Cmptest::compareQImages(different format) Compared QImages differ in format.
|
|
|
|
Actual (opA) : 6
|
|
|
|
Expected (opB): 3
|
|
|
|
Loc: [tst_cmptest.cpp(360)]
|
|
|
|
FAIL! : tst_Cmptest::compareQImages(different pixels) Compared values are not the same
|
|
|
|
Loc: [tst_cmptest.cpp(360)]
|
2011-04-27 10:05:43 +00:00
|
|
|
PASS : tst_Cmptest::cleanupTestCase()
|
2011-12-19 10:33:07 +00:00
|
|
|
Totals: 4 passed, 18 failed, 0 skipped
|
2011-04-27 10:05:43 +00:00
|
|
|
********* Finished testing of tst_Cmptest *********
|