summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/corelib/json/tst_qtjson.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/corelib/json/tst_qtjson.cpp b/tests/auto/corelib/json/tst_qtjson.cpp
index ebe7333c47..d4ce123fcc 100644
--- a/tests/auto/corelib/json/tst_qtjson.cpp
+++ b/tests/auto/corelib/json/tst_qtjson.cpp
@@ -746,6 +746,8 @@ void tst_QtJson::testObjectIteration()
QCOMPARE(object.size(), 10);
+ QCOMPARE(object.begin()->toDouble(), object.constBegin()->toDouble());
+
for (QJsonObject::iterator it = object.begin(); it != object.end(); ++it) {
QJsonValue value = it.value();
QCOMPARE((double)it.key().toInt(), value.toDouble());
@@ -822,6 +824,8 @@ void tst_QtJson::testArrayIteration()
QCOMPARE((double)i, value.toDouble());
}
+ QCOMPARE(array.begin()->toDouble(), array.constBegin()->toDouble());
+
{
QJsonArray array2 = array;
QVERIFY(array == array2);