Skip to content

Commit

Permalink
COMP: Prefer to test argc length over ignore argc value.
Browse files Browse the repository at this point in the history
  • Loading branch information
hjmjohnson committed Apr 12, 2024
1 parent e773540 commit e749cae
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ int
PerformBSplineSyNImageRegistration(int argc, char * argv[])
{
ITK_TEST_EXPECT_TRUE(argc == 4);

const unsigned int ImageDimension = TDimension;

using PixelType = double;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ template <unsigned int TDimension>
int
PerformCompositeImageRegistration(int argc, char * argv[])
{
if (argc != 4)
if (argc != 5)
{
std::cout << "ERROR: incorrect number of arguments" << std::endl;
return EXIT_FAILURE;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,9 @@ class CommandIterationUpdate : public itk::Command

template <unsigned int TDimension>
int
ImageRegistration(int itkNotUsed(argc), char * argv[])
ImageRegistration(int argc, char * argv[])
{
ITK_TEST_EXPECT_TRUE(argc == 4);
const unsigned int ImageDimension = TDimension;


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ template <unsigned int TDimension>
int
PerformDisplacementFieldImageRegistration(int argc, char * argv[])
{
if (argc != 4)
if (argc != 5)
{
std::cout << "ERROR: incorrect number of arguments" << std::endl;
return EXIT_FAILURE;
Expand Down

0 comments on commit e749cae

Please sign in to comment.