comparison UnitTestsSources/FromDcmtkTests.cpp @ 1789:bdcc1dba4a53 worklists

optimization
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 18 Nov 2015 16:38:08 +0100
parents 1b1d5470233f
children f08978b1f45b
comparison
equal deleted inserted replaced
1788:6a2d507ef064 1789:bdcc1dba4a53
618 m.SetValue(DICOM_TAG_PATIENT_ID, "hello"); 618 m.SetValue(DICOM_TAG_PATIENT_ID, "hello");
619 a.Add(m); 619 a.Add(m);
620 } 620 }
621 621
622 { 622 {
623 ParsedDicomFile d;
624 d.Replace(DICOM_TAG_PATIENT_ID, "my");
625 a.Add(d);
626 }
627
628 {
623 DicomMap m; 629 DicomMap m;
624 m.SetValue(DICOM_TAG_PATIENT_ID, "world"); 630 m.SetValue(DICOM_TAG_PATIENT_ID, "world");
625 a.Add(m); 631 a.Add(m);
626 } 632 }
627 633
628 Json::Value j; 634 Json::Value j;
629 a.ToJson(j, true); 635 a.ToJson(j, true);
630 ASSERT_EQ(2u, j.size()); 636 ASSERT_EQ(3u, j.size());
631 } 637
638 //std::cout << j;
639 }