Mercurial > hg > orthanc
diff UnitTestsSources/UnitTestsMain.cpp @ 1086:e56c3ed8d738
Parameter to set the default encoding for DICOM files without SpecificCharacterSet
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 04 Aug 2014 17:57:45 +0200 |
parents | 64f1842aae2e |
children | e07b90fb00eb |
line wrap: on
line diff
--- a/UnitTestsSources/UnitTestsMain.cpp Mon Aug 04 12:16:50 2014 +0200 +++ b/UnitTestsSources/UnitTestsMain.cpp Mon Aug 04 17:57:45 2014 +0200 @@ -639,6 +639,20 @@ ASSERT_EQ("", t[3]); } +TEST(Toolbox, Enumerations) +{ + ASSERT_EQ(Encoding_Utf8, StringToEncoding(EnumerationToString(Encoding_Utf8))); + ASSERT_EQ(Encoding_Ascii, StringToEncoding(EnumerationToString(Encoding_Ascii))); + ASSERT_EQ(Encoding_Latin1, StringToEncoding(EnumerationToString(Encoding_Latin1))); + + ASSERT_EQ(ResourceType_Patient, StringToResourceType(EnumerationToString(ResourceType_Patient))); + ASSERT_EQ(ResourceType_Study, StringToResourceType(EnumerationToString(ResourceType_Study))); + ASSERT_EQ(ResourceType_Series, StringToResourceType(EnumerationToString(ResourceType_Series))); + ASSERT_EQ(ResourceType_Instance, StringToResourceType(EnumerationToString(ResourceType_Instance))); + + ASSERT_EQ(ImageFormat_Png, StringToImageFormat(EnumerationToString(ImageFormat_Png))); +} + #if defined(__linux)