-
-
Notifications
You must be signed in to change notification settings - Fork 668
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
STYLE: Prefer using testing macros in miscellaneous tests
Prefer using testing macros in miscellaneous tests: - Use the `ITK_TRY_EXPECT_EXCEPTION` macro in lieu of `try/catch` blocks to check for expected exceptions for the sake of readability and compactness, and to save typing/avoid boilerplate code. - Use the `ITK_TEST_SET_GET_VALUE``macro to check for expected values for the sake of readability and compactness, and to save typing/avoid boilerplate code. Take advantage of the commit to make testing the getter methods quantitative by checking their return value.
- Loading branch information
1 parent
45583cf
commit 043b068
Showing
3 changed files
with
6 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters