X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestVR.cxx;h=26e8144f0cff02c8c4a15fbb54b88b501761d242;hb=7fd1222c03038e650429f10a908d8dfac8b9c462;hp=c72f54219a41a11af67a47a0199063ec3a35d390;hpb=41a5f9c2c6fd0592a97955244bdca64c25800481;p=gdcm.git diff --git a/Testing/TestVR.cxx b/Testing/TestVR.cxx index c72f5421..26e8144f 100644 --- a/Testing/TestVR.cxx +++ b/Testing/TestVR.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestVR.cxx,v $ Language: C++ - Date: $Date: 2005/10/20 15:05:15 $ - Version: $Revision: 1.9 $ + Date: $Date: 2005/10/25 14:52:31 $ + Version: $Revision: 1.11 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -16,12 +16,15 @@ =========================================================================*/ #include "gdcmVR.h" +#include "gdcmDebug.h" int TestVR(int , char *[]) { int error = 0; - gdcm::VR *vr = new gdcm::VR(); + gdcm::VR *vr = gdcm::VR::New(); + gdcm::Debug::DebugOn(); + // There should be 16 entries ... vr->Print( std::cout ); @@ -48,7 +51,7 @@ int TestVR(int , char *[]) } if( vr->IsValidVR( "\000/" ) ) { - std::cerr << "'\000/' is a valid VR" << std::endl; + std::cerr << "' /' is a valid VR" << std::endl; error++; } if( vr->IsValidVR( gdcm::GDCM_VRUNKNOWN ) ) @@ -93,6 +96,6 @@ int TestVR(int , char *[]) error++; } - delete vr; + vr->Delete(); return error; }