From c36aecc1e6fae7802eb57412ea3f3a6f2abb426b Mon Sep 17 00:00:00 2001 From: Manuel Gunther <siebenkopf@googlemail.com> Date: Wed, 14 Sep 2016 10:32:46 -0600 Subject: [PATCH] Updated test case to also check the uint_16 read --- bob/io/base/test.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bob/io/base/test.cpp b/bob/io/base/test.cpp index 9dd3d95..5b4acd5 100644 --- a/bob/io/base/test.cpp +++ b/bob/io/base/test.cpp @@ -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) } -- GitLab