From 579526cfec082679241548a0fca1ff9ba2c350a7 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Mon, 20 Jan 2014 16:03:30 -0800 Subject: 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 --- tests/auto/testlib/selftests/expected_cmptest.xml | 28 +++++++++++------------ 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'tests/auto/testlib/selftests/expected_cmptest.xml') diff --git a/tests/auto/testlib/selftests/expected_cmptest.xml b/tests/auto/testlib/selftests/expected_cmptest.xml index 08a40fb466..970544e4b6 100644 --- a/tests/auto/testlib/selftests/expected_cmptest.xml +++ b/tests/auto/testlib/selftests/expected_cmptest.xml @@ -56,48 +56,48 @@ + Actual (opA): "string3" + Expected (opB): "DIFFERS"]]> + Actual (opA): "string3" + Expected (opB): "DIFFERS"]]> + Actual (opA) size: 2 + Expected (opB) size: 1]]> + Actual (opA) size: 12 + Expected (opB) size: 1]]> + Actual (opA) size: 1 + Expected (opB) size: 12]]> + Actual (int1): 3 + Expected (int2): 4]]> + Actual (double1): 1.5 + Expected (double2): 1]]> -- cgit v1.2.3