From 6706a8919c3eccefa48d2c03fe28c9d08375c1c8 Mon Sep 17 00:00:00 2001 From: Tomerkm Date: Sat, 10 Jun 2023 15:35:49 +0300 Subject: [PATCH] canceled comments --- tests/src/unit-algorithms.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/src/unit-algorithms.cpp b/tests/src/unit-algorithms.cpp index be5789bba..c7aa030fd 100644 --- a/tests/src/unit-algorithms.cpp +++ b/tests/src/unit-algorithms.cpp @@ -306,7 +306,7 @@ TEST_CASE("algorithms") } } - /* + SECTION("copy") { SECTION("copy without if") @@ -321,12 +321,13 @@ TEST_CASE("algorithms") SECTION("copy if") { json dest_arr; - const json source_arr = {0,3,6,9,12,15,20}; + const json source_arr = {0, 3, 6, 9, 12, 15, 20}; - std::copy_if(source_arr.begin(), source_arr.end(), std::back_inserter(dest_arr), [](const json& _value) { + std::copy_if(source_arr.begin(), source_arr.end(), std::back_inserter(dest_arr), [](const json & _value) + { return _value.get() % 3 == 0; - }); + }); CHECK(dest_arr == json({0, 3, 6, 9, 12, 15})); } SECTION("copy n") @@ -341,7 +342,6 @@ TEST_CASE("algorithms") } } - */