comparison UnitTestsSources/FromDcmtkTests.cpp @ 1417:8e23f16a198d

fix issues 35 and 37
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 10 Jun 2015 15:17:02 +0200
parents 0649c5aef34a
children 9f66a12eb8fc
comparison
equal deleted inserted replaced
1416:037d5ffca74d 1417:8e23f16a198d
287 } 287 }
288 } 288 }
289 } 289 }
290 290
291 291
292 TEST(FromDcmtkBridge, VR) 292 TEST(FromDcmtkBridge, ValueRepresentation)
293 { 293 {
294 ASSERT_TRUE(FromDcmtkBridge::IsPNValueRepresentation(DICOM_TAG_PATIENT_NAME)); 294 ASSERT_EQ(ValueRepresentation_PatientName,
295 ASSERT_FALSE(FromDcmtkBridge::IsPNValueRepresentation(DICOM_TAG_PATIENT_ID)); 295 FromDcmtkBridge::GetValueRepresentation(DICOM_TAG_PATIENT_NAME));
296 } 296 ASSERT_EQ(ValueRepresentation_Date,
297 FromDcmtkBridge::GetValueRepresentation(DicomTag(0x0008, 0x0020) /* StudyDate */));
298 ASSERT_EQ(ValueRepresentation_Time,
299 FromDcmtkBridge::GetValueRepresentation(DicomTag(0x0008, 0x0030) /* StudyTime */));
300 ASSERT_EQ(ValueRepresentation_DateTime,
301 FromDcmtkBridge::GetValueRepresentation(DicomTag(0x0008, 0x002a) /* AcquisitionDateTime */));
302 ASSERT_EQ(ValueRepresentation_Other,
303 FromDcmtkBridge::GetValueRepresentation(DICOM_TAG_PATIENT_ID));
304 }