teak-llvm/libcxx/test/std/algorithms
Stephan T. Lavavej 09c311b9a4 [libcxx] [test] D26816: Fix non-Standard assumptions when testing sample().
sample() isn't specified with a reproducible algorithm, so expecting
exact output is non-Standard. Mark those tests with LIBCPP_ASSERT.

In test_small_population(), we're guaranteed to get all of the elements,
but not necessarily in their original order. When PopulationCategory is
forward, we're guaranteed stability (and can therefore test equal()).
Otherwise, we can only test is_permutation(). (As it happens, both libcxx
and MSVC's STL provide stability in this scenario for input-only iterators.)

llvm-svn: 287383
2016-11-18 21:54:43 +00:00
..
alg.c.library
alg.modifying.operations [libcxx] [test] D26816: Fix non-Standard assumptions when testing sample(). 2016-11-18 21:54:43 +00:00
alg.nonmodifying Purge all usages of _LIBCPP_STD_VER under test/std/algorithm 2016-10-08 01:25:23 +00:00
alg.sorting Purge all usages of _LIBCPP_STD_VER under test/std/algorithm 2016-10-08 01:25:23 +00:00
algorithms.general