llvm-project
f161b1b5 - [libc++][test] Refactor tests for rotate and rotate_copy (#126458)

Commit
217 days ago
[libc++][test] Refactor tests for rotate and rotate_copy (#126458) This PR refactors the tests and fix some problems: - Refactor similar tests using `types::for_each` to remove redundant code; - Explicitly include the missing header `type_algorithms.h` instead of relying on a transitive include; - Fix the incorrect constexpr declaration in `rotate.pass.cpp`, where the `test()` function is incorrectly defined as `TEST_CONSTEXPR_CXX17`, which is wrong since `std::rotate()` becomes constexpr only since C++20.
Author
Parents
Loading