mirror of
https://github.com/llvm-mirror/libcxx.git
synced 2025-10-22 16:37:40 +08:00
[libcxx] [test] Fix whitespace, NFC.
test/std almost always uses spaces; now it is entirely tab-free. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@329978 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -24,10 +24,10 @@
|
||||
// int ia[] = {1, 2, 3, 4, 5};
|
||||
// int ic[] = {6, 6, 6, 6, 6, 6, 6};
|
||||
//
|
||||
// auto p = std::copy(std::begin(ia), std::end(ia), std::begin(ic));
|
||||
// return std::equal(std::begin(ia), std::end(ia), std::begin(ic), p)
|
||||
// && std::all_of(p, std::end(ic), [](int a){return a == 6;})
|
||||
// ;
|
||||
// auto p = std::copy(std::begin(ia), std::end(ia), std::begin(ic));
|
||||
// return std::equal(std::begin(ia), std::end(ia), std::begin(ic), p)
|
||||
// && std::all_of(p, std::end(ic), [](int a){return a == 6;})
|
||||
// ;
|
||||
// }
|
||||
// #endif
|
||||
|
||||
|
@@ -26,11 +26,11 @@
|
||||
// int ia[] = {1, 2, 3, 4, 5};
|
||||
// int ic[] = {6, 6, 6, 6, 6, 6, 6};
|
||||
//
|
||||
// size_t N = std::size(ia);
|
||||
// auto p = std::copy_backward(std::begin(ia), std::end(ia), std::begin(ic) + N);
|
||||
// return std::equal(std::begin(ic), p, std::begin(ia))
|
||||
// && std::all_of(p, std::end(ic), [](int a){return a == 6;})
|
||||
// ;
|
||||
// size_t N = std::size(ia);
|
||||
// auto p = std::copy_backward(std::begin(ia), std::end(ia), std::begin(ic) + N);
|
||||
// return std::equal(std::begin(ic), p, std::begin(ia))
|
||||
// && std::all_of(p, std::end(ic), [](int a){return a == 6;})
|
||||
// ;
|
||||
// }
|
||||
// #endif
|
||||
|
||||
|
@@ -26,10 +26,10 @@
|
||||
// int ia[] = {2, 4, 6, 8, 6};
|
||||
// int ic[] = {0, 0, 0, 0, 0, 0};
|
||||
//
|
||||
// auto p = std::copy_if(std::begin(ia), std::end(ia), std::begin(ic), is6);
|
||||
// return std::all_of(std::begin(ic), p, [](int a){return a == 6;})
|
||||
// && std::all_of(p, std::end(ic), [](int a){return a == 0;})
|
||||
// ;
|
||||
// auto p = std::copy_if(std::begin(ia), std::end(ia), std::begin(ic), is6);
|
||||
// return std::all_of(std::begin(ic), p, [](int a){return a == 6;})
|
||||
// && std::all_of(p, std::end(ic), [](int a){return a == 0;})
|
||||
// ;
|
||||
// }
|
||||
// #endif
|
||||
|
||||
|
@@ -25,10 +25,10 @@
|
||||
// int ia[] = {1, 2, 3, 4, 5};
|
||||
// int ic[] = {6, 6, 6, 6, 6, 6, 6};
|
||||
//
|
||||
// auto p = std::copy_n(std::begin(ia), 4, std::begin(ic));
|
||||
// return std::equal(std::begin(ic), p, std::begin(ia))
|
||||
// && std::all_of(p, std::end(ic), [](int a){return a == 6;})
|
||||
// ;
|
||||
// auto p = std::copy_n(std::begin(ia), 4, std::begin(ic));
|
||||
// return std::equal(std::begin(ic), p, std::begin(ia))
|
||||
// && std::all_of(p, std::end(ic), [](int a){return a == 6;})
|
||||
// ;
|
||||
// }
|
||||
// #endif
|
||||
|
||||
|
@@ -26,7 +26,7 @@
|
||||
TEST_CONSTEXPR bool test_constexpr() {
|
||||
int ia[] = {0, 1, 1, 3, 4};
|
||||
const int expected[] = {0, 1, 3, 4};
|
||||
const size_t N = 4;
|
||||
const size_t N = 4;
|
||||
|
||||
auto it = std::unique(std::begin(ia), std::end(ia));
|
||||
return it == (std::begin(ia) + N)
|
||||
|
@@ -26,7 +26,7 @@
|
||||
TEST_CONSTEXPR bool test_constexpr() {
|
||||
int ia[] = {0, 1, 1, 3, 4};
|
||||
const int expected[] = {0, 1, 3, 4};
|
||||
const size_t N = 4;
|
||||
const size_t N = 4;
|
||||
|
||||
auto it = std::unique(std::begin(ia), std::end(ia), [](int a, int b) {return a == b; });
|
||||
return it == (std::begin(ia) + N)
|
||||
|
Reference in New Issue
Block a user