[PATCH] D54838: [libcxx] Fix order checking in unordered_multimap tests.
Andrey Maksimov via Phabricator
reviews at reviews.llvm.org
Thu Nov 22 12:37:06 PST 2018
amakc11 created this revision.
Herald added a reviewer: EricWF.
Herald added subscribers: libcxx-commits, ldionne.
Some tests assume that iteration through an unordered multimap elements will return them in the same order as at the container creation. This assumption is not true since the container is **unordered**, so that no specific order of elements is ever guaranteed for such container. This patch introduces checks verifying that any iteration will return elements exactly from a set of valid values and without repetition, but in no particular order.
Repository:
rCXX libc++
https://reviews.llvm.org/D54838
Files:
test/std/containers/unord/unord.multimap/equal_range_const.pass.cpp
test/std/containers/unord/unord.multimap/equal_range_non_const.pass.cpp
test/std/containers/unord/unord.multimap/local_iterators.pass.cpp
test/std/containers/unord/unord.multimap/rehash.pass.cpp
test/std/containers/unord/unord.multimap/reserve.pass.cpp
test/std/containers/unord/unord.multimap/swap_member.pass.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54838.175068.patch
Type: text/x-patch
Size: 23016 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20181122/98079a58/attachment-0001.bin>
More information about the libcxx-commits
mailing list