Mercurial > hg > minc-tools
changeset 2671:1ea475b70564
adding new test
author | Vladimir S. FONOV <vladimir.fonov@gmail.com> |
---|---|
date | Tue, 17 Apr 2012 02:13:56 -0400 |
parents | 6ff368df7591 |
children | 99d4a3bb68df |
files | ezminc/tests/ezminc_stats.cpp |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/ezminc/tests/ezminc_stats.cpp +++ b/ezminc/tests/ezminc_stats.cpp @@ -18,13 +18,12 @@ minc_1_reader rdr; rdr.open(filename); - if(history!=rdr.history()) - REPORT_ERROR("Mismatched history"); - int volume=1.0; for(int i=0;i<3;i++) - volume*=rdr.info()[i+1].length; + { + volume*=rdr.info()[i].length; + } if(typeid(TPixel)==typeid(unsigned char)) rdr.setup_read_byte();