Skip to content

Commit

Permalink
STYLE: Use ITK_TRY_EXPECT_NO_EXCEPTION macro in tests
Browse files Browse the repository at this point in the history
Use the `ITK_TRY_EXPECT_NO_EXCEPTION` macro in tests when updating
filters.
  • Loading branch information
jhlegarreta authored and hjmjohnson committed Sep 19, 2022
1 parent abc7e3a commit 7ff28ba
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ itkMultiLabelSTAPLEImageFilterTest(int, char *[])
filter->UnsetLabelForUndecidedPixels();

// Execute the filter
filter->Update();
ITK_TRY_EXPECT_NO_EXCEPTION(filter->Update());

// compare to correct results
it = myIteratorType(outputImage, outputImage->GetBufferedRegion());
Expand All @@ -205,7 +205,7 @@ itkMultiLabelSTAPLEImageFilterTest(int, char *[])
filter->SetInput(2, inputImageC);

// Execute the filter
filter->Update();
ITK_TRY_EXPECT_NO_EXCEPTION(filter->Update());

// compare to correct results
it = myIteratorType(outputImage, outputImage->GetBufferedRegion());
Expand Down

0 comments on commit 7ff28ba

Please sign in to comment.