3128: Fix data::paste test.

https://svn.lrde.epita.fr/svn/oln/trunk/milena Index: ChangeLog from Thierry Geraud <thierry.geraud@lrde.epita.fr> Fix data::paste test. * tests/data/paste.cc (main): Fix test. paste.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) Index: tests/data/paste.cc --- tests/data/paste.cc (revision 3127) +++ tests/data/paste.cc (working copy) @@ -131,17 +131,19 @@ // image if test { typedef image2d<unsigned short> I; - typedef image_if<I, fun::p2b::chess> II; + typedef fun::p2b::chess F; + F f; + typedef image_if<I, F> II; I ima(size, size); I out(size, size); - II ima_if = ima | fun::p2b::chess(); + II ima_if = ima | f; data::fill_with_value(ima, 0); debug::iota(ima); data::paste(ima_if, out); - mln_assertion(ima_if == out); + mln_assertion(ima_if == (out | f)); } // cast image test
participants (1)
-
Thierry Geraud