Skip to content

Commit

Permalink
ENH: Test BuildInformation GetValue, GetDescription for an l-value key
Browse files Browse the repository at this point in the history
Added a check that for each entry from the map retrieved by `GetMap()`,
both `GetValue(key)` and `GetDescription(key)` return the expected
string.
  • Loading branch information
N-Dekker authored and hjmjohnson committed Dec 30, 2021
1 parent 7324ffe commit d6778a3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Modules/Core/Common/test/itkBuildInformationGTest.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,15 @@ TEST(ITKBuildInformation, InformationFeatures)

for (auto mapEntry : localMap)
{
const auto & key = mapEntry.first;

std::cout << "--------------------------------------------------------------------" << std::endl
<< "Key: " << mapEntry.first << std::endl
<< "Key: " << key << std::endl
<< "\tValue: " << mapEntry.second.m_Value << std::endl
<< "\tDescription: " << mapEntry.second.m_Description << std::endl;

EXPECT_EQ(itk::BuildInformation::GetValue(key), mapEntry.second.m_Value);
EXPECT_EQ(itk::BuildInformation::GetDescription(key), mapEntry.second.m_Description);
}

EXPECT_EQ(itk::BuildInformation::GetValue("PROJECT_URL"), "http://www.itk.org");
Expand Down

0 comments on commit d6778a3

Please sign in to comment.