Skip to content

Commit

Permalink
Merge pull request #4044 from blowekamp/fmug_no_targets_print
Browse files Browse the repository at this point in the history
BUG: Add missing string value for NoTargets enum
  • Loading branch information
jhlegarreta authored May 11, 2023
2 parents f5cfdd4 + ac32a50 commit a01f9fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ operator<<(std::ostream & out, const FastMarchingUpwindGradientImageFilterEnums:
return out << [value] {
switch (value)
{
case FastMarchingUpwindGradientImageFilterEnums::TargetCondition::NoTargets:
return "itk::FastMarchingUpwindGradientImageFilterEnums::TargetCondition::NoTargets";
case FastMarchingUpwindGradientImageFilterEnums::TargetCondition::OneTarget:
return "itk::FastMarchingUpwindGradientImageFilterEnums::TargetCondition::OneTarget";
case FastMarchingUpwindGradientImageFilterEnums::TargetCondition::SomeTargets:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,9 @@ itkFastMarchingUpwindGradientTest(int, char *[])
};
for (const auto & ee : allConditions)
{
std::cout << "STREAMED ENUM VALUE FastMarchingUpwindGradientImageFilterEnums::TargetCondition: " << ee << std::endl;
std::ostringstream ss;
ss << ee;
ITK_TEST_EXPECT_TRUE(ss.str().find("INVALID") == std::string::npos);
}

if (passed)
Expand Down

0 comments on commit a01f9fc

Please sign in to comment.