summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2014-07-25 14:33:01 +0200
committerMarc Mutz <marc.mutz@kdab.com>2014-07-25 14:53:05 +0200
commit67a316be7cf9b9e7c2c7cc1845bee2dcf63f38ba (patch)
treecd91170a99afd7825f3690674f066154c050484e /tests/auto
parent34237d62f6023061564ae5ee3955bad0e9881fd3 (diff)
tst_QMap: replace QVERIFY(x == y) with QCOMPARE(x,y)
QCOMPARE produces more useful output on failure. Change-Id: Idaa9bf61a22a43b0feb084a71985a69c8787d633 Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/corelib/tools/qmap/tst_qmap.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/corelib/tools/qmap/tst_qmap.cpp b/tests/auto/corelib/tools/qmap/tst_qmap.cpp
index c160902268..3daab73cc2 100644
--- a/tests/auto/corelib/tools/qmap/tst_qmap.cpp
+++ b/tests/auto/corelib/tools/qmap/tst_qmap.cpp
@@ -1181,8 +1181,8 @@ void tst_QMap::initializerList()
#ifdef Q_COMPILER_INITIALIZER_LISTS
QMap<int, QString> map = {{1, "bar"}, {1, "hello"}, {2, "initializer_list"}};
QCOMPARE(map.count(), 2);
- QVERIFY(map[1] == "hello");
- QVERIFY(map[2] == "initializer_list");
+ QCOMPARE(map[1], QString("hello"));
+ QCOMPARE(map[2], QString("initializer_list"));
// note the difference to std::map:
// std::map<int, QString> stdm = {{1, "bar"}, {1, "hello"}, {2, "initializer_list"}};