comparison 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
comparison
equal deleted inserted replaced
1085:b161593551db 1086:e56c3ed8d738
637 ASSERT_EQ("cd", t[1]); 637 ASSERT_EQ("cd", t[1]);
638 ASSERT_EQ("ef", t[2]); 638 ASSERT_EQ("ef", t[2]);
639 ASSERT_EQ("", t[3]); 639 ASSERT_EQ("", t[3]);
640 } 640 }
641 641
642 TEST(Toolbox, Enumerations)
643 {
644 ASSERT_EQ(Encoding_Utf8, StringToEncoding(EnumerationToString(Encoding_Utf8)));
645 ASSERT_EQ(Encoding_Ascii, StringToEncoding(EnumerationToString(Encoding_Ascii)));
646 ASSERT_EQ(Encoding_Latin1, StringToEncoding(EnumerationToString(Encoding_Latin1)));
647
648 ASSERT_EQ(ResourceType_Patient, StringToResourceType(EnumerationToString(ResourceType_Patient)));
649 ASSERT_EQ(ResourceType_Study, StringToResourceType(EnumerationToString(ResourceType_Study)));
650 ASSERT_EQ(ResourceType_Series, StringToResourceType(EnumerationToString(ResourceType_Series)));
651 ASSERT_EQ(ResourceType_Instance, StringToResourceType(EnumerationToString(ResourceType_Instance)));
652
653 ASSERT_EQ(ImageFormat_Png, StringToImageFormat(EnumerationToString(ImageFormat_Png)));
654 }
655
642 656
643 657
644 #if defined(__linux) 658 #if defined(__linux)
645 #include <endian.h> 659 #include <endian.h>
646 #endif 660 #endif