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

Fix unit test

parent 862702b8
......@@ -99,14 +99,17 @@ TEST(View, filter_twice)
mln_foreach_new (auto&& pix, ima.new_pixels())
{
if (pix.val() > 10 and pix.val() < 15)
{
ASSERT_EQ(pix.val(), u(pix.point()));
ASSERT_TRUE(u.domain().has(pix.point()));
}
else
{
ASSERT_EQ(pix.val(), u.at(pix.point()));
ASSERT_TRUE(!u.domain().has(pix.point()));
ASSERT_TRUE(!u.domain().has(pix.point()));
}
}
{
mln_foreach_new (auto&& pix, u.new_pixels())
ASSERT_EQ(pix.val(), ima(pix.point()));
......
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