changeset 3219:4351f52f15d5

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 14 Feb 2019 11:52:35 +0100
parents 9a83d94b2a1e
children 1a0b4db799e8
files Core/Enumerations.cpp UnitTestsSources/FromDcmtkTests.cpp
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Core/Enumerations.cpp	Thu Feb 14 11:32:14 2019 +0100
+++ b/Core/Enumerations.cpp	Thu Feb 14 11:52:35 2019 +0100
@@ -1213,7 +1213,7 @@
       return Encoding_Korean;
     }
 
-    if (s == "JAPANESE_KANJI")
+    if (s == "JAPANESEKANJI")
     {
       return Encoding_JapaneseKanji;
     }
--- a/UnitTestsSources/FromDcmtkTests.cpp	Thu Feb 14 11:32:14 2019 +0100
+++ b/UnitTestsSources/FromDcmtkTests.cpp	Thu Feb 14 11:52:35 2019 +0100
@@ -260,7 +260,7 @@
   ASSERT_TRUE(GetDicomEncoding(e, "ISO 2022 IR 166"));  ASSERT_EQ(Encoding_Thai, e);
 
   // http://dicom.nema.org/medical/dicom/current/output/html/part03.html#table_C.12-4
-  ASSERT_FALSE(GetDicomEncoding(e, "ISO 2022 IR 87"));   //ASSERT_EQ(Encoding_JapaneseKanji, e);
+  ASSERT_TRUE(GetDicomEncoding(e, "ISO 2022 IR 87"));    ASSERT_EQ(Encoding_JapaneseKanji, e);
   ASSERT_FALSE(GetDicomEncoding(e, "ISO 2022 IR 159"));  //ASSERT_EQ(Encoding_JapaneseKanjiSupplementary, e);
   ASSERT_TRUE(GetDicomEncoding(e, "ISO 2022 IR 149"));   ASSERT_EQ(Encoding_Korean, e);