[libc++][NFC] Remove some of the code duplication in the string tests

Reviewed By: ldionne, #libc, huixie90

Spies: huixie90, libcxx-commits, arphaman

Differential Revision: https://reviews.llvm.org/D131856
This commit is contained in:
Nikolas Klauser committed 2022-08-26 21:57:42 +02:00
1 parent 9343ec861a
commit 786366b18f
67 files changed
+1709 -3048

No files matched your search

@@ -75,7 +75,7 @@ TEST_CONSTEXPR_CXX20 bool test() {
}
#endif
#if TEST_STD_VER > 3
#if TEST_STD_VER >= 11
{ // LWG 2946
std::string s = " !";
assert(s.compare({"abc", 1}) < 0);