comparison OrthancFramework/UnitTestsSources/FromDcmtkTests.cpp @ 4982:40fd2a485a84

fix build for older compilers
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 25 Apr 2022 18:25:46 +0200
parents e1495a34cd39
children 255b02c68908
comparison
equal deleted inserted replaced
4981:d0c34145320c 4982:40fd2a485a84
378 {// no tag 378 {// no tag
379 std::string source = ""; 379 std::string source = "";
380 std::set<DicomTag> result; 380 std::set<DicomTag> result;
381 FromDcmtkBridge::ParseListOfTags(result, source); 381 FromDcmtkBridge::ParseListOfTags(result, source);
382 382
383 ASSERT_EQ(0, result.size()); 383 ASSERT_EQ(0u, result.size());
384 } 384 }
385 385
386 {// invalid tag 386 {// invalid tag
387 std::string source = "0010,0010;Patient-BirthDate;0020,0020"; 387 std::string source = "0010,0010;Patient-BirthDate;0020,0020";
388 std::set<DicomTag> result; 388 std::set<DicomTag> result;
394 std::string source = "0010,0010;PatientName"; 394 std::string source = "0010,0010;PatientName";
395 std::set<DicomTag> result; 395 std::set<DicomTag> result;
396 396
397 FromDcmtkBridge::ParseListOfTags(result, source); 397 FromDcmtkBridge::ParseListOfTags(result, source);
398 398
399 ASSERT_EQ(1, result.size()); 399 ASSERT_EQ(1u, result.size());
400 } 400 }
401 401
402 {// Json 402 {// Json
403 Json::Value source = Json::arrayValue; 403 Json::Value source = Json::arrayValue;
404 source.append("0010,0010"); 404 source.append("0010,0010");