From 03bce5306284e7a3fa5d0a6f158d4e91c5b61cf8 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 9 Jan 2024 16:08:34 +0100 Subject: w --- test/map.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/map.cpp b/test/map.cpp index 62860b22..69c9942c 100644 --- a/test/map.cpp +++ b/test/map.cpp @@ -12,9 +12,9 @@ namespace { constexpr bool test1() { constexpr auto array = std::array{0, 1, 2, 3, 4}; - auto array2 = map(array, [](int x) constexpr { + auto array2 = map([](int x) constexpr { return (unsigned)(x - 1); - }); + }, array); constexpr auto array3 = std::array{(unsigned)-1, 0u, 1u, 2u, 3u}; fm_assert(array2.size() == array.size()); fm_assert(array3.size() == array.size()); @@ -25,7 +25,7 @@ constexpr bool test1() constexpr bool test2() { - fm_assert(map(std::array{}, [](int x) constexpr { return x;}).size() == 0); + fm_assert(map([](int x) constexpr { return x; }, std::array{}).size() == 0); return true; } -- cgit v1.2.3