f5b609cac8
Similar to what we've done to QString, only we print each byte that is not ASCII as \OOO (octal representation). [ChangeLog][QtTest] QtTest now prints an escaped version of QByteArrays that failed to compare with QCOMPARE, instead of the hex dump. Change-Id: I6a8c43f138c66c998280998a242b43cd579666a0 Reviewed-by: Richard J. Moore <rich@kde.org>
34 lines
2.3 KiB
Plaintext
34 lines
2.3 KiB
Plaintext
********* Start testing of tst_StrCmp *********
|
|
Config: Using QtTest library @INSERT_QT_VERSION_HERE@, Qt @INSERT_QT_VERSION_HERE@
|
|
PASS : tst_StrCmp::initTestCase()
|
|
PASS : tst_StrCmp::compareCharStars()
|
|
XFAIL : tst_StrCmp::compareByteArray() Next test should fail
|
|
Loc: [tst_strcmp.cpp(88)]
|
|
XFAIL : tst_StrCmp::compareByteArray() Next test should fail
|
|
Loc: [tst_strcmp.cpp(95)]
|
|
XFAIL : tst_StrCmp::compareByteArray() Next test should fail
|
|
Loc: [tst_strcmp.cpp(102)]
|
|
FAIL! : tst_StrCmp::compareByteArray() Compared values are not the same
|
|
Actual (a): "BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"...
|
|
Expected (b): "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"...
|
|
Loc: [/home/thiago/src/qt/qt5/qtbase/tests/auto/testlib/selftests/strcmp/tst_strcmp.cpp(109)]
|
|
FAIL! : tst_StrCmp::failByteArray() Compared values are not the same
|
|
Actual (QByteArray("abc")): "abc"
|
|
Expected (QByteArray("cba")): "cba"
|
|
Loc: [/home/thiago/src/qt/qt5/qtbase/tests/auto/testlib/selftests/strcmp/tst_strcmp.cpp(115)]
|
|
FAIL! : tst_StrCmp::failByteArrayNull() Compared values are not the same
|
|
Actual (QByteArray("foo")): "foo"
|
|
Expected (QByteArray()) : ""
|
|
Loc: [/home/thiago/src/qt/qt5/qtbase/tests/auto/testlib/selftests/strcmp/tst_strcmp.cpp(121)]
|
|
FAIL! : tst_StrCmp::failByteArrayEmpty() Compared values are not the same
|
|
Actual (QByteArray("")) : ""
|
|
Expected (QByteArray("foo")): "foo"
|
|
Loc: [/home/thiago/src/qt/qt5/qtbase/tests/auto/testlib/selftests/strcmp/tst_strcmp.cpp(126)]
|
|
FAIL! : tst_StrCmp::failByteArraySingleChars() Compared values are not the same
|
|
Actual (QByteArray("6")): "6"
|
|
Expected (QByteArray("7")): "7"
|
|
Loc: [/home/thiago/src/qt/qt5/qtbase/tests/auto/testlib/selftests/strcmp/tst_strcmp.cpp(133)]
|
|
PASS : tst_StrCmp::cleanupTestCase()
|
|
Totals: 3 passed, 5 failed, 0 skipped, 0 blacklisted
|
|
********* Finished testing of tst_StrCmp *********
|