changeset 4668:9210e196cd98

unit test for transfer syntax
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 28 May 2021 11:37:26 +0200
parents 08ee98bf103e
children b14989f9ff8b
files OrthancFramework/UnitTestsSources/FrameworkTests.cpp
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancFramework/UnitTestsSources/FrameworkTests.cpp	Thu May 27 15:59:03 2021 +0200
+++ b/OrthancFramework/UnitTestsSources/FrameworkTests.cpp	Fri May 28 11:37:26 2021 +0200
@@ -825,6 +825,11 @@
   ASSERT_STREQ("instances", GetResourceTypeText(ResourceType_Instance, true, false));
   ASSERT_STREQ("Instance", GetResourceTypeText(ResourceType_Instance, false, true));
   ASSERT_STREQ("instance", GetResourceTypeText(ResourceType_Instance, false, false));
+
+  DicomTransferSyntax ts;
+  ASSERT_FALSE(LookupTransferSyntax(ts, "nope"));
+  ASSERT_TRUE(LookupTransferSyntax(ts, "1.2.840.10008.1.2")); ASSERT_EQ(DicomTransferSyntax_LittleEndianImplicit, ts);
+  ASSERT_STREQ("1.2.840.10008.1.2", GetTransferSyntaxUid(ts));
 }