diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2014-07-25 14:50:55 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2014-08-05 18:04:46 +0200 |
commit | 54a4488ca5fa5e9277c392100017471214f14091 (patch) | |
tree | b6c4350b1a76775042af2a1b3f4931febaed1d77 /util | |
parent | 3a347a4e70e5a10ee92dd2578316c926a399e894 (diff) |
tst_QHash: check which of several equal keys is inserted
Add a test that checks that QHash keeps the first of the keys
that compare equal. This may or may not be documented, but is
inconsistent with the values in a QHash, where the last element
with equal key is kept.
Document this as a test. That way, we'll be informed when the
behavior changes (e.g. by a port to std::unordered_map).
Do the equivalent checks in tst_QMap, too. There, of course,
instead of equal keys, check equivalent ones.
Change-Id: I2c5f04f8e8a6bbc7dbaadadd878a4c876e4df042
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'util')
0 files changed, 0 insertions, 0 deletions