Skip to content

Commit

Permalink
Merge pull request InsightSoftwareConsortium#2341 from jhlegarreta/Fi…
Browse files Browse the repository at this point in the history
…xMultiphaseSparseFiniteDifferenceImageFilterTest

BUG: Fix `itkMultiphaseSparseFiniteDifferenceImageFilterTest`
  • Loading branch information
thewtex authored Feb 26, 2021
2 parents 6c06a28 + 9ec01eb commit 98a0621
Showing 1 changed file with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,12 @@ itkMultiphaseSparseFiniteDifferenceImageFilterTest(int, char *[])

FilterType::Pointer filter = FilterType::New();

ITK_EXERCISE_BASIC_OBJECT_METHODS(
filter, MultiphaseSparseFiniteDifferenceImageFilterTestHelper, MultiphaseFiniteDifferenceImageFilter);
// Instantiate the filter of interest to exercise its basic object methods
typename FilterType::Superclass::Pointer multiphaseSparseFiniteDiffFilter = FilterType::Superclass::New();

ITK_EXERCISE_BASIC_OBJECT_METHODS(multiphaseSparseFiniteDiffFilter,
MultiphaseSparseFiniteDifferenceImageFilter,
MultiphaseFiniteDifferenceImageFilter);


// Exercise the class Set/Get methods to increase coverage
Expand All @@ -123,13 +127,6 @@ itkMultiphaseSparseFiniteDifferenceImageFilterTest(int, char *[])
bool interpolateSurfaceLocation = true;
ITK_TEST_SET_GET_BOOLEAN(filter, InterpolateSurfaceLocation, interpolateSurfaceLocation);

ValueType valueZero = itk::NumericTraits<ValueType>::ZeroValue();
ITK_TEST_SET_GET_VALUE(valueZero, filter->GetValueZero());

ValueType valueOne = itk::NumericTraits<ValueType>::OneValue();

ITK_TEST_SET_GET_VALUE(valueOne, filter->GetValueOne());


std::cout << "Test finished." << std::endl;
return EXIT_SUCCESS;
Expand Down

0 comments on commit 98a0621

Please sign in to comment.