The hash autotest is wrong: it assumed that the iterator on the hash
would reach the end after iterating on two elements with identical key.
But three elements were added to that hash, and the third one
can appear after the other two.
That code path is left for the map test only.
Change-Id: I51de7987e2b132b6caff7bb4bac6a57fb7fcb530
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
QVERIFY(it != c.end());
QCOMPARE(it.key(), k1);
++it;
- QVERIFY(it == c.end());
+ if (Ordered)
+ QVERIFY(it == c.end());
}
void tst_QSharedPointer::map()