[libc++][test] Refactor SmallBasicString uses in range.lazy.split tests
authorJoe Loser <joeloser93@gmail.com>
Sun, 29 May 2022 01:08:25 +0000 (19:08 -0600)
committerJoe Loser <joeloser93@gmail.com>
Sat, 11 Jun 2022 19:10:02 +0000 (13:10 -0600)
commitae2ae84ffed3662fda4c516f6e9d62a7f780b169
tree0408e21fba84600fbf15eb7c3e8df58342890613
parent11f75e0a2dfa1455eee097dfa72686d8a4dc7802
[libc++][test] Refactor SmallBasicString uses in range.lazy.split tests

The tests for `std::ranges::lazy_split_view` heavily use a wrapper class around
`std::string` because `std::string` was not `constexpr` until recently. Where
possible, remove the wrapper class and extra functionality no longer needed.
Remove `libcxx/test/std/ranges/range.adaptors/range.lazy.split/small_string.h`
and inline its one use remaining in
`libcxx/test/std/ranges/range.adaptors/range.lazy.split/general.pass.cpp`.

Differential Revision: https://reviews.llvm.org/D126663
libcxx/test/std/ranges/range.adaptors/range.lazy.split/ctor.copy_move.pass.cpp
libcxx/test/std/ranges/range.adaptors/range.lazy.split/ctor.range.pass.cpp
libcxx/test/std/ranges/range.adaptors/range.lazy.split/general.pass.cpp
libcxx/test/std/ranges/range.adaptors/range.lazy.split/range.lazy.split.outer/deref.pass.cpp
libcxx/test/std/ranges/range.adaptors/range.lazy.split/range.lazy.split.outer/increment.pass.cpp
libcxx/test/std/ranges/range.adaptors/range.lazy.split/small_string.h [deleted file]
libcxx/test/std/ranges/range.adaptors/range.lazy.split/types.h