Skip to content

Commit

Permalink
STYLE: Add ITK prefix to testing macros
Browse files Browse the repository at this point in the history
  • Loading branch information
jhlegarreta authored and dzenanz committed Feb 20, 2020
1 parent 596254d commit 4a9000f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/itkVectorKernelPCATest.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ int ParseVectorFields( std::vector< std::string > vectorFieldFilenames, typename

meshReader->SetFileName( vectorFieldName );

TRY_EXPECT_NO_EXCEPTION( meshReader->Update() );
ITK_TRY_EXPECT_NO_EXCEPTION( meshReader->Update() );

// Get the objects
typename TMesh::Pointer meshWithField = meshReader->GetOutput();
Expand Down Expand Up @@ -139,7 +139,7 @@ int itkVectorKernelPCATest( int argc, char *argv[] )

meshReader->SetFileName( argv[1] );

TRY_EXPECT_NO_EXCEPTION( meshReader->Update() );
ITK_TRY_EXPECT_NO_EXCEPTION( meshReader->Update() );


// Get the input mesh
Expand All @@ -148,11 +148,11 @@ int itkVectorKernelPCATest( int argc, char *argv[] )

PCACalculatorType::Pointer pcaCalc = PCACalculatorType::New();

EXERCISE_BASIC_OBJECT_METHODS( pcaCalc, VectorFieldPCA, Object );
ITK_EXERCISE_BASIC_OBJECT_METHODS( pcaCalc, VectorFieldPCA, Object );


// Test exception when trying to compute before setting much of anything
TRY_EXPECT_EXCEPTION( pcaCalc->Compute() );
ITK_TRY_EXPECT_EXCEPTION( pcaCalc->Compute() );


// Set user variables
Expand All @@ -161,7 +161,7 @@ int itkVectorKernelPCATest( int argc, char *argv[] )

// Connect the input
pcaCalc->SetPointSet( mesh );
TEST_SET_GET_VALUE( mesh, pcaCalc->GetPointSet() );
ITK_TEST_SET_GET_VALUE( mesh, pcaCalc->GetPointSet() );

// Set vector fields

Expand All @@ -186,11 +186,11 @@ int itkVectorKernelPCATest( int argc, char *argv[] )
vectorFieldFilenames, vectorFieldSet );

pcaCalc->SetVectorFieldSet( vectorFieldSet );
TEST_SET_GET_VALUE( vectorFieldSet, pcaCalc->GetVectorFieldSet() );
ITK_TEST_SET_GET_VALUE( vectorFieldSet, pcaCalc->GetVectorFieldSet() );


// Execute the PCA calculator
TRY_EXPECT_NO_EXCEPTION( pcaCalc->Compute() );
ITK_TRY_EXPECT_NO_EXCEPTION( pcaCalc->Compute() );


double kernelSigma = 6.25;
Expand Down Expand Up @@ -275,7 +275,7 @@ int itkVectorKernelPCATest( int argc, char *argv[] )
// than the number of vector field sets
pcaCalc->SetComponentCount( fieldSetCount + 1 );

TRY_EXPECT_EXCEPTION( pcaCalc->Compute() );
ITK_TRY_EXPECT_EXCEPTION( pcaCalc->Compute() );


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

0 comments on commit 4a9000f

Please sign in to comment.