# HG changeset patch # User Sebastien Jodogne # Date 1444746648 -7200 # Node ID d2268c7a7ede5648744dac8dfab7f36956d96670 # Parent b80e76dd1d56fa811ccf53dd557f68f8ff51f32a fix unit tests diff -r b80e76dd1d56 -r d2268c7a7ede UnitTestsSources/DicomMapTests.cpp --- a/UnitTestsSources/DicomMapTests.cpp Tue Oct 13 16:10:35 2015 +0200 +++ b/UnitTestsSources/DicomMapTests.cpp Tue Oct 13 16:30:48 2015 +0200 @@ -170,18 +170,12 @@ }*/ // Exceptions for the Instance level - if ((/* Accession number, from Image module */ - *it == DicomTag(0x0020, 0x0012) && - level == ResourceType_Instance) || - (/* Image Index, from PET Image module */ - *it == DicomTag(0x0054, 0x1330) && - level == ResourceType_Instance) || - (/* Temporal Position Identifier, from MR Image module */ - *it == DicomTag(0x0020, 0x0100) && - level == ResourceType_Instance) || - (/* Number of Frames, from Multi-frame module attributes, related to Image IOD */ - *it == DicomTag(0x0028, 0x0008) && - level == ResourceType_Instance )) + if (level == ResourceType_Instance && + (*it == DicomTag(0x0020, 0x0012) || /* Accession number, from Image module */ + *it == DicomTag(0x0054, 0x1330) || /* Image Index, from PET Image module */ + *it == DicomTag(0x0020, 0x0100) || /* Temporal Position Identifier, from MR Image module */ + *it == DicomTag(0x0028, 0x0008) || /* Number of Frames, from Multi-frame module attributes, related to Image IOD */ + *it == DICOM_TAG_IMAGE_POSITION_PATIENT)) { ok = true; }