From 9c7247f4b0ad76997fd75384da712eb3cab4e368 Mon Sep 17 00:00:00 2001 From: Tomerkm Date: Sat, 3 Jun 2023 12:46:55 +0300 Subject: [PATCH] removed vector std --- tests/src/unit-algorithms.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/src/unit-algorithms.cpp b/tests/src/unit-algorithms.cpp index 63c9dc469..29b5ad23b 100644 --- a/tests/src/unit-algorithms.cpp +++ b/tests/src/unit-algorithms.cpp @@ -299,16 +299,14 @@ TEST_CASE("algorithms") { SECTION("int") { - const std::vector arr(10); - json json_arr(arr); + json json_arr = {0, 5, 2, 4, 10, 20, 30, 40, 50, 1}; std::iota(json_arr.begin(), json_arr.end(), 0); CHECK(json_arr == json({0, 1, 2, 3, 4, 5, 6, 7, 8, 9})); } SECTION("double") { - const std::vector arr(10); - json json_arr(arr); + json json_arr = {0.5, 51, 2.53, 4.1, 10.43, 20.12, 30.5, 140, 50.50, 1}; std::iota(json_arr.begin(), json_arr.end(), 0.5); CHECK(json_arr == json({0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5})); }