[libcxx] [test] Strip trailing whitespace, NFC.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@324959 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
#if TEST_STD_VER > 17
|
||||
TEST_CONSTEXPR bool test_constexpr() {
|
||||
int ia[] = {1, 3, 5, 2, 5, 6};
|
||||
|
||||
|
||||
auto it = std::remove(std::begin(ia), std::end(ia), 5);
|
||||
|
||||
return (std::begin(ia) + std::size(ia) - 2) == it // we removed two elements
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
TEST_CONSTEXPR bool test_constexpr() {
|
||||
int ia[] = {1, 3, 5, 2, 5, 6};
|
||||
int ib[std::size(ia)] = {0};
|
||||
|
||||
|
||||
auto it = std::remove_copy(std::begin(ia), std::end(ia), std::begin(ib), 5);
|
||||
|
||||
return std::distance(std::begin(ib), it) == (std::size(ia) - 2) // we removed two elements
|
||||
|
||||
@@ -28,7 +28,7 @@ TEST_CONSTEXPR bool equalToTwo(int v) { return v == 2; }
|
||||
TEST_CONSTEXPR bool test_constexpr() {
|
||||
int ia[] = {1, 3, 5, 2, 5, 6};
|
||||
int ib[std::size(ia)] = {0};
|
||||
|
||||
|
||||
auto it = std::remove_copy_if(std::begin(ia), std::end(ia), std::begin(ib), equalToTwo);
|
||||
|
||||
return std::distance(std::begin(ib), it) == (std::size(ia) - 1) // we removed one element
|
||||
|
||||
@@ -29,7 +29,7 @@ TEST_CONSTEXPR bool equal2 ( int i ) { return i == 2; }
|
||||
#if TEST_STD_VER > 17
|
||||
TEST_CONSTEXPR bool test_constexpr() {
|
||||
int ia[] = {1, 3, 5, 2, 5, 6};
|
||||
|
||||
|
||||
auto it = std::remove_if(std::begin(ia), std::end(ia), equal2);
|
||||
|
||||
return (std::begin(ia) + std::size(ia) - 1) == it // we removed one element
|
||||
|
||||
Reference in New Issue
Block a user