comparison UnitTestsSources/UnitTestsMain.cpp @ 3497:db71bd11affc

fix unit tests if dcmtk != 3.6.1
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 21 Aug 2019 16:57:02 +0200
parents c08bb6ac3b7f
children bdafff1ce443
comparison
equal deleted inserted replaced
3496:109631ed3564 3497:db71bd11affc
478 478
479 TEST(Toolbox, Utf8ToUnicode) 479 TEST(Toolbox, Utf8ToUnicode)
480 { 480 {
481 // https://en.wikipedia.org/wiki/UTF-8 481 // https://en.wikipedia.org/wiki/UTF-8
482 482
483 ASSERT_EQ(1, sizeof(char)); 483 ASSERT_EQ(1u, sizeof(char));
484 ASSERT_EQ(1, sizeof(uint8_t)); 484 ASSERT_EQ(1u, sizeof(uint8_t));
485 485
486 { 486 {
487 const uint8_t data[] = { 0x24 }; 487 const uint8_t data[] = { 0x24 };
488 ASSERT_EQ(0x24, GetUnicode(data, 1, 1)); 488 ASSERT_EQ(0x24, GetUnicode(data, 1, 1));
489 ASSERT_THROW(GetUnicode(data, 0, 1), OrthancException); 489 ASSERT_THROW(GetUnicode(data, 0, 1), OrthancException);