+ // Valid VR
+ if( !vr->IsValidVR( "PN" ) )
+ {
+ std::cerr << "'PN' is not a valid VR" << std::endl;
+ error++;
+ }
+ if( !vr->IsValidVR( "FD" ) )
+ {
+ std::cerr << "'FD' is not a valid VR" << std::endl;
+ error++;
+ }
+ if( vr->IsValidVR( "" ) )
+ {
+ std::cerr << "'' is a valid VR" << std::endl;
+ error++;
+ }
+ if( vr->IsValidVR( " " ) )
+ {
+ 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;
+ error++;
+ }
+
+ // String representable
+ if( !vr->IsVROfStringRepresentable( "PN" ) )
+ {
+ std::cerr << "'PN' is not a string representable" << std::endl;
+ error++;
+ }
+ if( vr->IsVROfStringRepresentable( "FD" ) )
+ {
+ std::cerr << "'FD' is a string representable" << std::endl;
+ error++;
+ }