diff --git a/Src/libCZI_UnitTests/test_metadatareading.cpp b/Src/libCZI_UnitTests/test_metadatareading.cpp index 2e50a024..54028095 100644 --- a/Src/libCZI_UnitTests/test_metadatareading.cpp +++ b/Src/libCZI_UnitTests/test_metadatareading.cpp @@ -54,8 +54,8 @@ TEST(MetadataReading, ScalingInfoExTest) EXPECT_DOUBLE_EQ(scalingInfo.scaleY, 1.6432520108980473e-07); EXPECT_FALSE(scalingInfo.IsScaleZValid()); - EXPECT_TRUE(scalingInfo.defaultUnitFormatX == L"um"); - EXPECT_TRUE(scalingInfo.defaultUnitFormatY == L"um"); + EXPECT_TRUE(scalingInfo.defaultUnitFormatX.compare(L"um") == 0); + EXPECT_TRUE(scalingInfo.defaultUnitFormatY.compare(L"um") == 0); EXPECT_TRUE(scalingInfo.defaultUnitFormatZ.empty()); } @@ -274,8 +274,8 @@ static void EnumAllRecursively(IXmlNodeRead* node, std::function n)->bool { names.push_back(utf8_conv.to_bytes(n->Name())); - return true; + return true; }); auto cnt = md.use_count(); @@ -317,15 +317,15 @@ TEST(MetadataReading, WalkChildrenTest2) { string s(utf8_conv.to_bytes(n->Name())); - n->EnumAttributes( - [&](const std::wstring& attribName, const std::wstring& attribValue)->bool - { - s += ":" + utf8_conv.to_bytes(attribName) + "=" + utf8_conv.to_bytes(attribValue); - return true; - }); + n->EnumAttributes( + [&](const std::wstring& attribName, const std::wstring& attribValue)->bool + { + s += ":" + utf8_conv.to_bytes(attribName) + "=" + utf8_conv.to_bytes(attribValue); + return true; + }); - namesAndAttributes.push_back(s); - return true; + namesAndAttributes.push_back(s); + return true; }); auto cnt = md.use_count(); @@ -350,14 +350,14 @@ TEST(MetadataReading, WalkChildrenTest3) [&](std::shared_ptr n)->bool { string s(utf8_conv.to_bytes(n->Name())); - wstring value; - if (n->TryGetValue(&value)) - { - s += " -> " + utf8_conv.to_bytes(value); - } + wstring value; + if (n->TryGetValue(&value)) + { + s += " -> " + utf8_conv.to_bytes(value); + } - namesAndValue.push_back(s); - return true; + namesAndValue.push_back(s); + return true; }); auto cnt = md.use_count();