]> Creatis software - gdcm.git/blobdiff - Testing/TestVR.cxx
COMP: Fix comp, and use IsValueCountValid in an assert just for kick
[gdcm.git] / Testing / TestVR.cxx
index 729157a64ebaeb975260d0b7417ece0e6c70594e..303ec22dfaa1f422bc38d3e20df6cd44c982ffef 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestVR.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/10/18 12:58:25 $
-  Version:   $Revision: 1.8 $
+  Date:      $Date: 2005/10/21 08:28:02 $
+  Version:   $Revision: 1.10 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
                                                                                 
 =========================================================================*/
 #include "gdcmVR.h"
+#include "gdcmDebug.h"
 
 int TestVR(int , char *[])
 {
    int error = 0;
    gdcm::VR *vr = new gdcm::VR();
  
+   gdcm::Debug::DebugOn();
+
    // There should be 16 entries ...
    vr->Print( std::cout );
 
@@ -46,6 +49,11 @@ int TestVR(int , char *[])
       std::cerr << "'  ' is a valid VR" << std::endl;
       error++;
    }
+   if( vr->IsValidVR( "\000/" ) )
+   {
+      std::cerr << "' /' is a valid VR" << std::endl;
+      error++;
+   }
    if( vr->IsValidVR( gdcm::GDCM_VRUNKNOWN ) )
    {
       std::cerr << "'  ' is a valid VR" << std::endl;