diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2014-01-20 16:03:30 -0800 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-02-16 06:54:18 +0100 |
commit | 579526cfec082679241548a0fca1ff9ba2c350a7 (patch) | |
tree | 46062137fa4749fdc19793d13a4def2e4dab62d7 /tests/auto/testlib/selftests/expected_cmptest.xunitxml | |
parent | 19c70982517e76d89bb3da931e1390a6386603da (diff) |
Make the printing of complex Unicode in a QString prettier
This also has the advantage of not requiring the use of the locale
codec. Quite an advantage if you're debugging the locale codec. But it's
mostly so that we don't get question marks that hide the difference we
were trying to locate.
[ChangeLog][QtTest] QtTest now prints an escaped version of QStrings
that failed to compare with QCOMPARE. That is, instead of converting
non-printable characters to question marks, QtTest will print the
Unicode representation of the character in question.
Change-Id: I44c1ef3246b188c913dacd3ca4df02581356ea41
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'tests/auto/testlib/selftests/expected_cmptest.xunitxml')
-rw-r--r-- | tests/auto/testlib/selftests/expected_cmptest.xunitxml | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/tests/auto/testlib/selftests/expected_cmptest.xunitxml b/tests/auto/testlib/selftests/expected_cmptest.xunitxml index e7d76ac839..7874c6c52e 100644 --- a/tests/auto/testlib/selftests/expected_cmptest.xunitxml +++ b/tests/auto/testlib/selftests/expected_cmptest.xunitxml @@ -23,30 +23,30 @@ </testcase> <testcase result="fail" name="compareQStringLists"> <failure tag="last item different" message="Compared lists differ at index 2. - Actual (opA): 'string3' - Expected (opB): 'DIFFERS'" result="fail"/> + Actual (opA): "string3" + Expected (opB): "DIFFERS"" result="fail"/> <failure tag="second-last item different" message="Compared lists differ at index 2. - Actual (opA): 'string3' - Expected (opB): 'DIFFERS'" result="fail"/> + Actual (opA): "string3" + Expected (opB): "DIFFERS"" result="fail"/> <failure tag="prefix" message="Compared lists have different sizes. - Actual (opA) size: '2' - Expected (opB) size: '1'" result="fail"/> + Actual (opA) size: 2 + Expected (opB) size: 1" result="fail"/> <failure tag="short list second" message="Compared lists have different sizes. - Actual (opA) size: '12' - Expected (opB) size: '1'" result="fail"/> + Actual (opA) size: 12 + Expected (opB) size: 1" result="fail"/> <failure tag="short list first" message="Compared lists have different sizes. - Actual (opA) size: '1' - Expected (opB) size: '12'" result="fail"/> + Actual (opA) size: 1 + Expected (opB) size: 12" result="fail"/> </testcase> <testcase result="fail" name="compareQListInt"> <failure message="Compared lists differ at index 2. - Actual (int1): '3' - Expected (int2): '4'" result="fail"/> + Actual (int1): 3 + Expected (int2): 4" result="fail"/> </testcase> <testcase result="fail" name="compareQListDouble"> <failure message="Compared lists differ at index 0. - Actual (double1): '1.5' - Expected (double2): '1'" result="fail"/> + Actual (double1): 1.5 + Expected (double2): 1" result="fail"/> </testcase> <testcase result="fail" name="compareQPixmaps"> <failure tag="one null" message="Compared QPixmaps differ. |