Skip to content
Snippets Groups Projects
Commit c36aecc1 authored by Manuel Günther's avatar Manuel Günther
Browse files

Updated test case to also check the uint_16 read

parent 1c1172b8
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -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)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment