Commit af1b877f authored by Michaël Roynard's avatar Michaël Roynard
Browse files

Minor fixes

parent 3a021321
......@@ -85,6 +85,8 @@ namespace mln
(void)permissive;
std::function<void(void*)> write_next_pixel = plugin->get_write_next_pixel_method();
// FIXME: Oh my! So dirty!
// To be fixed with new io facility based on type-erased image for python
if constexpr (is_a<I, experimental::Image>{})
{
for (auto v : const_cast<I*>(&ima)->new_values())
......
#include <mln/core/algorithm/all_of.hpp>
#include <mln/core/algorithm/equal.hpp>
#include <mln/core/algorithm/fill.hpp>
#include <mln/core/algorithm/iota.hpp>
#include <mln/core/concept/new/archetype/image.hpp>
......@@ -191,11 +192,14 @@ TEST(Core, Transform_Supports_Function)
static_assert(not concepts::OutputImage<decltype(c)>);
#endif // PYLENE_CONCEPT_TS_ENABLED
// FIXME: ASSERT_IMAGES_EQ(ref, c);
// FIXME: migrate rangev3 @HEAD
// ASSERT_TRUE(mln::equal(ref, c));
}
TEST(Core, Transform_Supports_PointerToMemberFunction)
{
using namespace mln::experimental::ops;
typedef std::pair<int, int> V;
mln::box2d dom{{-1, -2}, {3, 3}};
......@@ -216,7 +220,8 @@ TEST(Core, Transform_Supports_PointerToMemberFunction)
mln::fill(c, 69);
// FIXME: ASSERT_IMAGES_EQ(ref, c);
// FIXME: migrate rangev3 @HEAD
// ASSERT_TRUE(mln::equal(ref, c));
}
......@@ -237,6 +242,7 @@ TEST(Core, Transformed2Image_transform_byval_chain)
[[maybe_unused]] auto out = view::transform(y, ima2, [](int a, int b) { return a + b; });
// FIXME: issue https://github.com/ericniebler/range-v3/issues/996 with gcc8.2
// FIXME: migrate rangev3 @HEAD
// [[maybe_unused]] auto z = mln::all_of(out);
}
}
......@@ -323,6 +323,7 @@ TEST(Range, transform_read_chain)
// FIXME: issue https://github.com/ericniebler/range-v3/issues/996 with gcc8.2
// FIXME: migrate rangev3 @HEAD
/*
TEST(Range, transform2_read_chain)
{
......@@ -337,6 +338,7 @@ TEST(Range, transform2_read_chain)
*/
// FIXME: issue https://github.com/ericniebler/range-v3/issues/996 with gcc8.2
// FIXME: migrate rangev3 @HEAD
/*
TEST(Range, range_transform2_read_chain)
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment