Mercurial > hg > orthanc
comparison OrthancServer/UnitTestsSources/DatabaseLookupTests.cpp @ 4198:c671331ea1ef
fix unit test
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 16 Sep 2020 18:13:13 +0200 |
parents | 37310bb1cd30 |
children | d9473bd5ed43 |
comparison
equal
deleted
inserted
replaced
4197:b1d528687e25 | 4198:c671331ea1ef |
---|---|
230 { | 230 { |
231 DatabaseLookup lookup; | 231 DatabaseLookup lookup; |
232 lookup.AddDicomConstraint(DICOM_TAG_MODALITIES_IN_STUDY, "CT\\MR", false, true); | 232 lookup.AddDicomConstraint(DICOM_TAG_MODALITIES_IN_STUDY, "CT\\MR", false, true); |
233 | 233 |
234 ASSERT_EQ(1u, lookup.GetConstraintsCount()); | 234 ASSERT_EQ(1u, lookup.GetConstraintsCount()); |
235 ASSERT_EQ(DICOM_TAG_MODALITY, lookup.GetConstraint(0).GetTag()); | 235 ASSERT_EQ(DICOM_TAG_MODALITIES_IN_STUDY, lookup.GetConstraint(0).GetTag()); |
236 ASSERT_EQ(ConstraintType_List, lookup.GetConstraint(0).GetConstraintType()); | 236 ASSERT_EQ(ConstraintType_List, lookup.GetConstraint(0).GetConstraintType()); |
237 | 237 |
238 const std::set<std::string>& values = lookup.GetConstraint(0).GetValues(); | 238 const std::set<std::string>& values = lookup.GetConstraint(0).GetValues(); |
239 ASSERT_EQ(2u, values.size()); | 239 ASSERT_EQ(2u, values.size()); |
240 ASSERT_TRUE(values.find("CT") != values.end()); | 240 ASSERT_TRUE(values.find("CT") != values.end()); |