summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-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;
}