X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestVR.cxx;h=36710c63685b81c70ea15c84e227f1b1330b577a;hb=9689c0978578896cab99394a3cbe4fdcb3583ff5;hp=1087e1bb6815bbffd2ebe43736f781e8c13d99c9;hpb=ac626b1dfb536a0fbf8eae7d3270daceaecb5bda;p=gdcm.git diff --git a/Testing/TestVR.cxx b/Testing/TestVR.cxx index 1087e1bb..36710c63 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/01/06 17:16:15 $ - Version: $Revision: 1.3 $ + Date: $Date: 2005/02/02 10:05:26 $ + Version: $Revision: 1.7 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -19,12 +19,29 @@ int TestVR(int , char *[]) { - gdcm::VR vr; - // There should be 16 entries - vr.Print( std::cout ); - vr.IsVROfStringRepresentable( "" ); - vr.IsVROfBinaryRepresentable( "" ); - vr.IsVROfSequence( "" ); + gdcm::VR *tempVrDict=0; + std::cout << "------ Test Default VR Dictionary : ----------" << std::endl; + // Just to improve test coverage: + // tempVrDict = new gdcm::Dict("dummyFileNameThatDoesntExist"); + // tempVrDict->Print(); + // std::cout << "----- end Test Default VR Dictionary : -----" << std::endl; + // Lets delete it. + delete tempVrDict; + + gdcm::VR *vr = new gdcm::VR(); + + // There should be 16 entries ... + vr->Print( std::cout ); + + vr->IsVROfStringRepresentable( "PN" ); + vr->IsVROfStringRepresentable( "FD" ); + + vr->IsVROfBinaryRepresentable( "FD" ); + vr->IsVROfBinaryRepresentable( "PN" ); + + vr->IsVROfSequence( "" ); + vr->IsVROfSequence( "SQ" ); + delete vr; return 0; }