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

Minor fixes

parent f329e4b1
Pipeline #12689 failed with stages
in 4 minutes and 50 seconds
......@@ -17,7 +17,7 @@ enum B : int
TEST(Core, Concept_Index)
{
// TODO: test signed/unsiegned once concept is fixed and consolidated
// TODO: test signed/unsigned once concept is fixed and consolidated
static_assert(concepts::Index<int>);
static_assert(!concepts::Index<double>);
static_assert(!concepts::Index<A>);
......
......@@ -10,21 +10,17 @@
namespace concepts = mln::concepts;
#ifdef PYLENE_CONCEPT_TS_ENABLED
template <concepts::Image Ima>
void foo(Ima) {}
#endif
TEST(Core, Image_Image2D)
{
#ifdef PYLENE_CONCEPT_TS_ENABLED
foo(mln::image2d<int>{});
static_assert(concepts::Image<mln::image2d<int>>);
static_assert(concepts::IndexableImage<mln::image2d<int>>);
static_assert(concepts::AccessibleImage<mln::image2d<int>>);
static_assert(concepts::IndexableAndAccessibleImage<mln::image2d<int>>);
static_assert(concepts::BidirectionalImage<mln::image2d<int>>);
static_assert(concepts::RawImage<mln::image2d<int>>);
static_assert(concepts::ConcreteImage<mln::image2d<int>>);
static_assert(not concepts::ViewImage<mln::image2d<int>>);
#endif // PYLENE_CONCEPT_TS_ENABLED
}
......@@ -38,6 +34,8 @@ TEST(Core, Image_Image3D)
static_assert(concepts::IndexableAndAccessibleImage<mln::image3d<int>>);
static_assert(concepts::BidirectionalImage<mln::image3d<int>>);
static_assert(concepts::RawImage<mln::image3d<int>>);
static_assert(concepts::ConcreteImage<mln::image2d<int>>);
static_assert(not concepts::ViewImage<mln::image2d<int>>);
#endif // PYLENE_CONCEPT_TS_ENABLED
}
......
......@@ -18,14 +18,6 @@
namespace concepts = mln::concepts;
namespace archetypes = mln::archetypes;
#ifdef PYLENE_CONCEPT_TS_ENABLED
template <concepts::ViewImage Ima>
void foo(Ima)
{
}
#endif // PYLENE_CONCEPT_TS_ENABLED
TEST(Core, TransformedImage_transform_byval_rvalue)
{
using namespace mln;
......
Markdown is supported
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