summaryrefslogtreecommitdiffhomepage
path: root/test/map.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-01-09 16:08:34 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-01-09 16:08:34 +0100
commit03bce5306284e7a3fa5d0a6f158d4e91c5b61cf8 (patch)
tree13de11f57c1f10ce027c5f7b1ca2dd5a4bc598ed /test/map.cpp
parente72eb0b1d3149288d2a5291722c3ba68bb567a84 (diff)
w
Diffstat (limited to 'test/map.cpp')
-rw-r--r--test/map.cpp6
1 files changed, 3 insertions, 3 deletions
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, 0>{}, [](int x) constexpr { return x;}).size() == 0);
+ fm_assert(map([](int x) constexpr { return x; }, std::array<int, 0>{}).size() == 0);
return true;
}