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
91d73ce2
Commit
91d73ce2
authored
Sep 20, 2021
by
Baptiste Esteban
Browse files
Remove tests raising exception
parent
71587406
Pipeline
#30213
passed with stages
in 27 minutes and 4 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
tests/io/cfitsio.cpp
View file @
91d73ce2
...
@@ -10,22 +10,6 @@
...
@@ -10,22 +10,6 @@
static
const
auto
filename
=
fixtures
::
ImagePath
::
concat_with_filename
(
"test.fit"
);
static
const
auto
filename
=
fixtures
::
ImagePath
::
concat_with_filename
(
"test.fit"
);
TEST
(
IO
,
cfitsio_not_an_image
)
{
bool
has_raised
=
false
;
try
{
auto
img
=
mln
::
io
::
fits
::
imread
(
filename
,
0
);
(
void
)
img
;
}
catch
(
std
::
runtime_error
&
e
)
{
has_raised
=
true
;
ASSERT_EQ
(
std
::
strcmp
(
"Unhandled image number of dimension (Got 0, expected in [1 - 4])"
,
e
.
what
()),
0
);
}
ASSERT_TRUE
(
has_raised
);
}
TEST
(
IO
,
cfitsio_2D_uint8
)
TEST
(
IO
,
cfitsio_2D_uint8
)
{
{
mln
::
image2d
<
std
::
uint8_t
>
ref
=
{
mln
::
image2d
<
std
::
uint8_t
>
ref
=
{
...
...
Write
Preview
Supports
Markdown
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