summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/tools/qhash/tst_qhash.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/corelib/tools/qhash/tst_qhash.cpp')
-rw-r--r--tests/auto/corelib/tools/qhash/tst_qhash.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/corelib/tools/qhash/tst_qhash.cpp b/tests/auto/corelib/tools/qhash/tst_qhash.cpp
index 4052eff0ae..2a18f8d3e6 100644
--- a/tests/auto/corelib/tools/qhash/tst_qhash.cpp
+++ b/tests/auto/corelib/tools/qhash/tst_qhash.cpp
@@ -1115,6 +1115,12 @@ void tst_QHash::keyValueIterator()
entry_type pair(it.key(), it.value());
QCOMPARE(*key_value_it, pair);
+ QCOMPARE(key_value_it->first, pair.first);
+ QCOMPARE(key_value_it->second, pair.second);
+ QCOMPARE(&(*key_value_it).first, &it.key());
+ QCOMPARE(&key_value_it->first, &it.key());
+ QCOMPARE(&(*key_value_it).second, &it.value());
+ QCOMPARE(&key_value_it->second, &it.value());
++key_value_it;
++it;
}