History log of /external/libcxx/test/std/containers/unord/unord.set/unord.set.swap/swap_non_member.pass.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
939607910d58aa2414091cc6eeb2e1c143a7770c 05-Feb-2017 Stephan T. Lavavej <stl@exchange.microsoft.com> [libcxx] [test] Fix Clang -Wunused-local-typedef, part 2/3.

These typedefs were completely unused.

Fixes D29136.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@294155 91177308-0d34-0410-b5e6-96231b3b80d8
/external/libcxx/test/std/containers/unord/unord.set/unord.set.swap/swap_non_member.pass.cpp
11f64dcc5864f3d237dd4fd35f56793022567257 11-Dec-2016 Eric Fiselier <eric@efcs.ca> Fix undefined behavior in container swap tests.

These swap tests were swapping non-POCS non-equal allocators which
is undefined behavior. This patch changes the tests to use allocators
which compare equal. In order to test that the allocators were not
swapped I added an "id" field to test_allocator which does not
participate in equality but does propagate across copies/swaps.

This patch is based off of D26623 which was submitted by STL.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@289358 91177308-0d34-0410-b5e6-96231b3b80d8
/external/libcxx/test/std/containers/unord/unord.set/unord.set.swap/swap_non_member.pass.cpp
98605940df7a54649618c541b972a308cccaade9 06-Dec-2016 Stephan T. Lavavej <stl@exchange.microsoft.com> [libcxx] [test] D27021: Fix MSVC warning C4389 "signed/unsigned mismatch", part 8/12.

Add static_cast<std::size_t> when comparing distance() to size().

These replacements were performed programmatically with regex_replace():

const vector<pair<regex, string>> reg_fmt = {
{ regex(R"(assert\((\w+)\.size\(\) == std::distance\((\w+, \w+)\)\))"),
"assert($1.size() == static_cast<std::size_t>(std::distance($2)))" },
{ regex(R"(assert\(distance\((\w+\.begin\(\), \w+\.end\(\))\) == (\w+)\.size\(\)\))"),
"assert(static_cast<std::size_t>(distance($1)) == $2.size())" },
{ regex(R"(assert\(std::distance\((\w+\.\w*begin\(\), \w+\.\w*end\(\))\) == (\w+)\.size\(\)\))"),
"assert(static_cast<std::size_t>(std::distance($1)) == $2.size())" },
};

Also, include <cstddef> when it wasn't already being included.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@288745 91177308-0d34-0410-b5e6-96231b3b80d8
/external/libcxx/test/std/containers/unord/unord.set/unord.set.swap/swap_non_member.pass.cpp
0b2e1c23fbafa17927e2ca48ef4a9d8c2144ed2b 15-Nov-2016 Stephan T. Lavavej <stl@exchange.microsoft.com> [libcxx] [test] D26624: Fix bucket_count() assumptions.

With a max_load_factor of 1.0, the only guarantee is that
bucket_count() >= size(). (Note: setting max_load_factor without
rehashing isn't supposed to affect this, because setting
max_load_factor is currently specified to be constant time.)

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@286982 91177308-0d34-0410-b5e6-96231b3b80d8
/external/libcxx/test/std/containers/unord/unord.set/unord.set.swap/swap_non_member.pass.cpp
0809a7f62b7e43e2e5f3a31f66dd8cf097cfeb71 25-Jul-2016 Eric Fiselier <eric@efcs.ca> Mark bucket_count() assertions as non-portable. Patch from STL@microsoft.com

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@276593 91177308-0d34-0410-b5e6-96231b3b80d8
/external/libcxx/test/std/containers/unord/unord.set/unord.set.swap/swap_non_member.pass.cpp
d24c465beaec2fe9a0e365e6379cd5d3acaeb2ca 14-Jun-2016 Eric Fiselier <eric@efcs.ca> Replace __cplusplus comparisons and dialect __has_feature checks with TEST_STD_VER.

This is a huge cleanup that helps make the libc++ test suite more portable.
Patch from STL@microsoft.com. Thanks STL!


git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@272716 91177308-0d34-0410-b5e6-96231b3b80d8
/external/libcxx/test/std/containers/unord/unord.set/unord.set.swap/swap_non_member.pass.cpp
a90c6dd46005b2b14de3bb889a8d03bb34bd3256 20-Dec-2014 Eric Fiselier <eric@efcs.ca> Move test into test/std subdirectory.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@224658 91177308-0d34-0410-b5e6-96231b3b80d8
/external/libcxx/test/std/containers/unord/unord.set/unord.set.swap/swap_non_member.pass.cpp