diff options
author | Stephan T. Lavavej <stl@exchange.microsoft.com> | 2018-02-12 22:54:35 +0000 |
---|---|---|
committer | Stephan T. Lavavej <stl@exchange.microsoft.com> | 2018-02-12 22:54:35 +0000 |
commit | 6b1ae9b854bd186c8dab4784d287f38ce61459d2 (patch) | |
tree | cdc0b96afc32b469b6af86c350ebbc0c5912111f /libcxx/test/std/algorithms/alg.modifying.operations/alg.generate | |
parent | 031a00c6607ef823942db1ed4269badd7c50f0ef (diff) | |
download | bcm5719-llvm-6b1ae9b854bd186c8dab4784d287f38ce61459d2.tar.gz bcm5719-llvm-6b1ae9b854bd186c8dab4784d287f38ce61459d2.zip |
[libcxx] [test] Strip trailing whitespace, NFC.
llvm-svn: 324959
Diffstat (limited to 'libcxx/test/std/algorithms/alg.modifying.operations/alg.generate')
-rw-r--r-- | libcxx/test/std/algorithms/alg.modifying.operations/alg.generate/generate.pass.cpp | 2 | ||||
-rw-r--r-- | libcxx/test/std/algorithms/alg.modifying.operations/alg.generate/generate_n.pass.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/test/std/algorithms/alg.modifying.operations/alg.generate/generate.pass.cpp b/libcxx/test/std/algorithms/alg.modifying.operations/alg.generate/generate.pass.cpp index 8be501c273b..1b1562866f4 100644 --- a/libcxx/test/std/algorithms/alg.modifying.operations/alg.generate/generate.pass.cpp +++ b/libcxx/test/std/algorithms/alg.modifying.operations/alg.generate/generate.pass.cpp @@ -32,7 +32,7 @@ TEST_CONSTEXPR bool test_constexpr() { int ia[] = {0, 1, 2, 3, 4}; std::generate(std::begin(ia), std::end(ia), gen_test()); - + return std::all_of(std::begin(ia), std::end(ia), [](int x) { return x == 1; }) ; } diff --git a/libcxx/test/std/algorithms/alg.modifying.operations/alg.generate/generate_n.pass.cpp b/libcxx/test/std/algorithms/alg.modifying.operations/alg.generate/generate_n.pass.cpp index 98b7bea653c..36132443999 100644 --- a/libcxx/test/std/algorithms/alg.modifying.operations/alg.generate/generate_n.pass.cpp +++ b/libcxx/test/std/algorithms/alg.modifying.operations/alg.generate/generate_n.pass.cpp @@ -38,7 +38,7 @@ TEST_CONSTEXPR bool test_constexpr() { int ib[] = {0, 0, 0, 0, 0, 0}; // one bigger than N auto it = std::generate_n(std::begin(ib), N, gen_test()); - + return it == (std::begin(ib) + N) && std::all_of(std::begin(ib), it, [](int x) { return x == 2; }) && *it == 0 // don't overwrite the last value in the output array |