Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.io.base
Commits
c36aecc1
Commit
c36aecc1
authored
Sep 14, 2016
by
Manuel Günther
Browse files
Updated test case to also check the uint_16 read
parent
1c1172b8
Pipeline
#3702
passed with stages
in 61 minutes and 29 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/io/base/test.cpp
View file @
c36aecc1
...
...
@@ -40,16 +40,19 @@ BOB_TRY
output
.
reset
();
auto
input
=
h5file
(
hdf5
.
string
().
c_str
(),
'r'
);
blitz
::
Array
<
uint8_t
,
1
>
read_data
=
input
->
read
<
uint8_t
,
1
>
(
0
);
blitz
::
Array
<
uint8_t
,
1
>
read_data
(
input
->
read
<
uint8_t
,
1
>
(
0
)
)
;
// Does not compile at the moment
blitz
::
Array
<
uint16_t
,
1
>
read_data_2
=
input
->
cast
<
uint16_t
,
1
>
(
0
);
blitz
::
Array
<
uint16_t
,
1
>
read_data_2
(
input
->
cast
<
uint16_t
,
1
>
(
0
)
)
;
input
.
reset
();
if
(
blitz
::
any
(
test_data
-
read_data
))
throw
std
::
runtime_error
(
"The CSV IO test did not succeed"
);
if
(
blitz
::
any
(
test_data
-
read_data_2
))
throw
std
::
runtime_error
(
"The CSV IO test did not succeed"
);
Py_RETURN_NONE
;
BOB_CATCH_FUNCTION
(
"_test_api"
,
0
)
}
...
...
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