summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/algorithms/alg.modifying.operations/alg.transform
diff options
context:
space:
mode:
authorStephan T. Lavavej <stl@exchange.microsoft.com>2018-02-12 22:54:35 +0000
committerStephan T. Lavavej <stl@exchange.microsoft.com>2018-02-12 22:54:35 +0000
commit6b1ae9b854bd186c8dab4784d287f38ce61459d2 (patch)
treecdc0b96afc32b469b6af86c350ebbc0c5912111f /libcxx/test/std/algorithms/alg.modifying.operations/alg.transform
parent031a00c6607ef823942db1ed4269badd7c50f0ef (diff)
downloadbcm5719-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.transform')
-rw-r--r--libcxx/test/std/algorithms/alg.modifying.operations/alg.transform/binary_transform.pass.cpp6
-rw-r--r--libcxx/test/std/algorithms/alg.modifying.operations/alg.transform/unary_transform.pass.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/libcxx/test/std/algorithms/alg.modifying.operations/alg.transform/binary_transform.pass.cpp b/libcxx/test/std/algorithms/alg.modifying.operations/alg.transform/binary_transform.pass.cpp
index 27d3a968a76..b2b894912c3 100644
--- a/libcxx/test/std/algorithms/alg.modifying.operations/alg.transform/binary_transform.pass.cpp
+++ b/libcxx/test/std/algorithms/alg.modifying.operations/alg.transform/binary_transform.pass.cpp
@@ -28,10 +28,10 @@ TEST_CONSTEXPR bool test_constexpr() {
const int ib[] = {2, 4, 7, 8};
int ic[] = {0, 0, 0, 0, 0}; // one bigger
const int expected[] = {3, 7, 13, 15};
-
- auto it = std::transform(std::begin(ia), std::end(ia),
+
+ auto it = std::transform(std::begin(ia), std::end(ia),
std::begin(ib), std::begin(ic), std::plus<int>());
-
+
return it == (std::begin(ic) + std::size(ia))
&& *it == 0 // don't overwrite the last value in the output array
&& std::equal(std::begin(expected), std::end(expected), std::begin(ic), it)
diff --git a/libcxx/test/std/algorithms/alg.modifying.operations/alg.transform/unary_transform.pass.cpp b/libcxx/test/std/algorithms/alg.modifying.operations/alg.transform/unary_transform.pass.cpp
index b6f9cbad00f..a929291adba 100644
--- a/libcxx/test/std/algorithms/alg.modifying.operations/alg.transform/unary_transform.pass.cpp
+++ b/libcxx/test/std/algorithms/alg.modifying.operations/alg.transform/unary_transform.pass.cpp
@@ -32,7 +32,7 @@ TEST_CONSTEXPR bool test_constexpr() {
const int expected[] = {2, 4, 7, 8};
auto it = std::transform(std::begin(ia), std::end(ia), std::begin(ib), plusOne);
-
+
return it == (std::begin(ib) + std::size(ia))
&& *it == 0 // don't overwrite the last value in the output array
&& std::equal(std::begin(ib), it, std::begin(expected), std::end(expected))
OpenPOWER on IntegriCloud