29 #include <mln/make/attachment.hh>
31 #include "tests/core/image/complex_image.hh"
37 typedef mln::bin_2complex_image2d I;
38 typedef mln_psite_(I) P;
42 mln::complex_lower_higher_neighborhood<I::dim, mln_geom_(I)> adj_nbh;
62 I ima = make_test_bin_2complex_image2d();
65 P v0(ima.domain(), 0, 0);
66 P v2(ima.domain(), 0, 2);
67 P e1(ima.domain(), 1, 1);
68 P t0(ima.domain(), 2, 0);
72 mln::p_set<P> attach_t0 = mln::make::attachment(ima, t0, adj_nbh);
73 mln_assertion(attach_t0.
nsites() == 3);
74 mln_assertion(attach_t0.has(e1));
75 mln_assertion(attach_t0.has(v0));
76 mln_assertion(attach_t0.has(v2));