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>
45 lines
2.4 KiB
XML
45 lines
2.4 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<testsuite errors="3" failures="5" tests="8" name="tst_StrCmp">
|
|
<properties>
|
|
<property value="@INSERT_QT_VERSION_HERE@" name="QTestVersion"/>
|
|
<property value="@INSERT_QT_VERSION_HERE@" name="QtVersion"/>
|
|
<property value="" name="QtBuild"/>
|
|
</properties>
|
|
<testcase result="pass" name="initTestCase"/>
|
|
<testcase result="pass" name="compareCharStars"/>
|
|
<testcase result="fail" name="compareByteArray">
|
|
<!-- message="Next test should fail" type="info" -->
|
|
<!-- message="Next test should fail" type="info" -->
|
|
<!-- message="Next test should fail" type="info" -->
|
|
<failure message="Compared values are not the same
|
|
Actual (a): "BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"...
|
|
Expected (b): "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"..." result="fail"/>
|
|
</testcase>
|
|
<testcase result="fail" name="failByteArray">
|
|
<failure message="Compared values are not the same
|
|
Actual (QByteArray("abc")): "abc"
|
|
Expected (QByteArray("cba")): "cba"" result="fail"/>
|
|
</testcase>
|
|
<testcase result="fail" name="failByteArrayNull">
|
|
<failure message="Compared values are not the same
|
|
Actual (QByteArray("foo")): "foo"
|
|
Expected (QByteArray()) : """ result="fail"/>
|
|
</testcase>
|
|
<testcase result="fail" name="failByteArrayEmpty">
|
|
<failure message="Compared values are not the same
|
|
Actual (QByteArray("")) : ""
|
|
Expected (QByteArray("foo")): "foo"" result="fail"/>
|
|
</testcase>
|
|
<testcase result="fail" name="failByteArraySingleChars">
|
|
<failure message="Compared values are not the same
|
|
Actual (QByteArray("6")): "6"
|
|
Expected (QByteArray("7")): "7"" result="fail"/>
|
|
</testcase>
|
|
<testcase result="pass" name="cleanupTestCase"/>
|
|
<system-err>
|
|
<![CDATA[Next test should fail]]>
|
|
<![CDATA[Next test should fail]]>
|
|
<![CDATA[Next test should fail]]>
|
|
</system-err>
|
|
</testsuite>
|