changeset 5300:7d913ee2f665 am-experimental

fix
author Alain Mazy <am@osimis.io>
date Wed, 24 May 2023 08:54:54 +0200
parents c9ea57d73603
children f26ed26a7793
files OrthancFramework/UnitTestsSources/FromDcmtkTests.cpp
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancFramework/UnitTestsSources/FromDcmtkTests.cpp	Tue May 23 17:38:26 2023 +0200
+++ b/OrthancFramework/UnitTestsSources/FromDcmtkTests.cpp	Wed May 24 08:54:54 2023 +0200
@@ -3322,8 +3322,8 @@
     Json::Value v;
     Orthanc::Toolbox::ReadJson(v, source);
 
-    LOG(INFO) << source;
-    LOG(INFO) << v.toStyledString();
+//    LOG(INFO) << source;
+//    LOG(INFO) << v.toStyledString();
     Json::Value result = Json::objectValue;
     DicomMap map;
     map.FromDicomAsJson(v, false, true);
@@ -3334,8 +3334,9 @@
       FromDcmtkBridge::ToJson(result, map, Orthanc::DicomToJsonFormat_DicomWeb);
     }
 
+    LOG(INFO) << result.toStyledString();
     ASSERT_TRUE(result.isMember("00281053"));
-    ASSERT_EQ("0.0625", result["00281053"]["Value"].asString());
+    ASSERT_DOUBLE_EQ(0.0625, result["00281053"]["Value"][0].asDouble());
   }
 }