Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Olena
pylene
Commits
10288b80
Commit
10288b80
authored
Dec 18, 2018
by
Michaël Roynard
Browse files
Minor fixes
parent
f329e4b1
Pipeline
#12689
failed with stages
in 4 minutes and 50 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tests/core/concept/indexes.cpp
View file @
10288b80
...
...
@@ -17,7 +17,7 @@ enum B : int
TEST
(
Core
,
Concept_Index
)
{
// TODO: test signed/unsi
e
gned 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
>
);
...
...
tests/core/image/ndimage.cpp
View file @
10288b80
...
...
@@ -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
}
...
...
tests/core/image/view/transform.cpp
View file @
10288b80
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment