[ismrmrd] 89/281: Image test
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Wed Jan 14 20:01:00 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to annotated tag ismrmrd0.5
in repository ismrmrd.
commit e9a9c9aa2c57007439c2bd1408420adac0f6ffc4
Author: kvahed <kaveh at vahedipour.de>
Date: Tue Jan 29 17:30:20 2013 +0100
Image test
---
tests/c++/t_image.cpp | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/tests/c++/t_image.cpp b/tests/c++/t_image.cpp
index b4041b4..3b467a6 100644
--- a/tests/c++/t_image.cpp
+++ b/tests/c++/t_image.cpp
@@ -2,8 +2,6 @@
#include "ismrmrd_hdf5.h"
#include "ismrmrd.hxx"
-
-
int main (int args, char** argv) {
using namespace ISMRMRD;
@@ -14,10 +12,17 @@ int main (int args, char** argv) {
dims.push_back (1);
dims.push_back (16); // channels
-
Image<std::complex<float> > img_s (dims);
- return 0;
+ if (!img_s.is_consistent()) // dimensions and data size match?
+ return 1;
+
+ size_t img_s_gne = img_s.getNumberOfElements();
+ size_t img_s_e = img_s.elements();
+ if (img_s_gne != img_s_e) // header and data match?
+ return 1;
+
+ return 0;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/ismrmrd.git
More information about the debian-science-commits
mailing list