[libcxx][tests] Fix order checking in unordered_multiset tests.
authorLouis Dionne <ldionne@apple.com>
Thu, 23 May 2019 13:11:00 +0000 (13:11 +0000)
committerLouis Dionne <ldionne@apple.com>
Thu, 23 May 2019 13:11:00 +0000 (13:11 +0000)
commit6b48742e43f603b6458ed02dd4dc5d8021922a21
tree96d352aa7127f4c5767be26954c317f8364bed19
parent5dabe03b4178c8d276cc1732fed2813418513dce
[libcxx][tests] Fix order checking in unordered_multiset tests.

Some tests assume that iteration through an unordered multiset 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.

Thanks to Andrey Maksimov for  the patch.

Differential Revision: https://reviews.llvm.org/D56500

llvm-svn: 361494
libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/assign_copy.pass.cpp
libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/assign_move.pass.cpp
libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/copy.pass.cpp
libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/copy_alloc.pass.cpp
libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/move_alloc.pass.cpp