Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: Add a parameter to test to improve itk::ResampleImageFilter testing. #447

Commits on Jan 31, 2019

  1. ENH: Add a parameter to test to improve itk::ResampleImageFilter te…

    …sting.
    
    Add a parameter to the `itkResampleImageFilterTest2.cxx` to improve the
    `itk::ResampleImageFilter` class testing.
    
    Specifically, exercise the workflow when the `UseReferenceImage` boolean
    is set to `false`. Add to the test arguments:
    - A boolean to as a hint to use or discard the reference image.
    - The spacing to be used when resampling when no reference image is used.
    
    Add the corresponding baselines.
    
    Rename the tests and old baselines to account for this new test.
    
    Take advantage of the commit to improve the style of the test:
    - Use the `TRY_EXPECT_NO_EXCEPTION` in lieu of `try/catch` for the sake of
      readability/compactness/save typing boilerplate code.
    - Explicitly call `Update()` on filters with the help of the
      `TRY_EXPECT_EXCEPTION` macro.
    - Use the `TEST_SET_GET_BOOLEAN` macro to test the boolean members.
    - Remove unused/unnecessary `reader` declared variables.
    - Move the `std::cout` messages before the filter calls to `Update()`.
    jhlegarreta committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    14b24ed View commit details
    Browse the repository at this point in the history