From e3b114ecab8e156928d0f29db4b72903981d91c7 Mon Sep 17 00:00:00 2001 From: Tomerkm Date: Sat, 10 Jun 2023 12:50:24 +0300 Subject: [PATCH] formated the file using tests/src/unit-algorithms.cpp make amalgamat --- 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 af95bc10a..be5789bba 100644 --- a/tests/src/unit-algorithms.cpp +++ b/tests/src/unit-algorithms.cpp @@ -322,12 +322,12 @@ TEST_CASE("algorithms") { json dest_arr; 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) { return _value.get() % 3 == 0; }); - CHECK(dest_arr == json({0, 3, 6, 9, 12, 15})); + CHECK(dest_arr == json({0, 3, 6, 9, 12, 15})); } SECTION("copy n") { @@ -336,10 +336,10 @@ TEST_CASE("algorithms") const unsigned char numToCopy = 2; std::copy_n(source_arr.begin(), numToCopy, std::back_inserter(dest_arr)); - CHECK(dest_arr == json{0, 1}); + CHECK(dest_arr == json{0, 1}); } - + } */