]> Creatis software - gdcm.git/commitdiff
ENH: Add a very bizarre case
authormalaterre <malaterre>
Thu, 20 Oct 2005 15:05:15 +0000 (15:05 +0000)
committermalaterre <malaterre>
Thu, 20 Oct 2005 15:05:15 +0000 (15:05 +0000)
Testing/TestVR.cxx

index 729157a64ebaeb975260d0b7417ece0e6c70594e..c72f54219a41a11af67a47a0199063ec3a35d390 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/20 15:05:15 $
+  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
@@ -46,6 +46,11 @@ int TestVR(int , char *[])
       std::cerr << "'  ' is a valid VR" << std::endl;
       error++;
    }
+   if( vr->IsValidVR( "\000/" ) )
+   {
+      std::cerr << "'\000/' is a valid VR" << std::endl;
+      error++;
+   }
    if( vr->IsValidVR( gdcm::GDCM_VRUNKNOWN ) )
    {
       std::cerr << "'  ' is a valid VR" << std::endl;