comparison UnitTestsSources/ServerIndex.cpp @ 711:8f62e8d5a384

test main dicom tags
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 13 Feb 2014 15:51:10 +0100
parents 203157cb4fde
children 9d1973813d8b
comparison
equal deleted inserted replaced
710:c87a1d529e13 711:8f62e8d5a384
2 2
3 #include "../OrthancServer/DatabaseWrapper.h" 3 #include "../OrthancServer/DatabaseWrapper.h"
4 #include "../OrthancServer/ServerContext.h" 4 #include "../OrthancServer/ServerContext.h"
5 #include "../OrthancServer/ServerIndex.h" 5 #include "../OrthancServer/ServerIndex.h"
6 #include "../Core/Uuid.h" 6 #include "../Core/Uuid.h"
7 #include "../Core/DicomFormat/DicomNullValue.h"
7 8
8 #include <ctype.h> 9 #include <ctype.h>
9 #include <glog/logging.h> 10 #include <glog/logging.h>
10 #include <algorithm> 11 #include <algorithm>
11 12
497 for (std::list<std::string>::iterator i = s.begin(); i != s.end(); i++) 498 for (std::list<std::string>::iterator i = s.begin(); i != s.end(); i++)
498 { 499 {
499 std::cout << "*** " << *i << std::endl;; 500 std::cout << "*** " << *i << std::endl;;
500 } 501 }
501 }*/ 502 }*/
502
503
504 }
505
506
507 TEST(DicomMap, MainTags)
508 {
509 ASSERT_TRUE(DicomMap::IsMainDicomTag(DICOM_TAG_PATIENT_ID));
510 ASSERT_TRUE(DicomMap::IsMainDicomTag(DICOM_TAG_PATIENT_ID, ResourceType_Patient));
511 ASSERT_FALSE(DicomMap::IsMainDicomTag(DICOM_TAG_PATIENT_ID, ResourceType_Study));
512 } 503 }
513 504
514 505
515 506
516 TEST(DatabaseWrapper, AttachmentRecycling) 507 TEST(DatabaseWrapper, AttachmentRecycling)