From 4bb577c99b703ee2e4995821a6346cce614429a6 Mon Sep 17 00:00:00 2001 From: jpr Date: Fri, 28 Oct 2005 15:44:54 +0000 Subject: [PATCH] Don't check VM for OB and OW tags : we know it's allways 1, whatever the actual length (on disc) is. --- Testing/TestAllVM.cxx | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/Testing/TestAllVM.cxx b/Testing/TestAllVM.cxx index 3dc460c3..199ac501 100644 --- a/Testing/TestAllVM.cxx +++ b/Testing/TestAllVM.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestAllVM.cxx,v $ Language: C++ - Date: $Date: 2005/10/25 14:52:30 $ - Version: $Revision: 1.8 $ + Date: $Date: 2005/10/28 15:44:54 $ + Version: $Revision: 1.9 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -43,13 +43,17 @@ int DoTheVMTest(std::string const &filename) if ( !(de->GetGroup() % 2) ) // Don't check shadow elements. Righ now, // Private Dictionnary are not dealt with { - if( !de->IsValueCountValid() ) - { - std::cerr << "Element: " << de->GetKey() << + // We know OB and OW VM is always 1, whatever the actual + // found value is. + + if (de->GetVR() != "OB" && de->GetVR() != "OW" ) + if( !de->IsValueCountValid() ) + { + std::cerr << "Element: " << de->GetKey() << " (" << de->GetName() << ") " << "Contains a wrong VM: " << de->GetValueCount() << " should be: " << de->GetVM() << std::endl;; - } + } } } else -- 2.48.1