Skip to content

Commit

Permalink
Corrected unit test tolerance
Browse files Browse the repository at this point in the history
  • Loading branch information
DominicDirkx committed Dec 18, 2023
1 parent a2bbb96 commit a08ea11
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,10 @@ BOOST_AUTO_TEST_CASE( test_CannonballPartials )
for ( unsigned int i = 0; i < 3; i++ )
{
BOOST_CHECK_SMALL( std::fabs( static_cast< double >( analyticalValue( i ) - numericalValue( i ))),
2.0E-5 * analyticalValue.block( 0, 0, 3, 1 ).norm( ));
1.0E-4 * analyticalValue.block( 0, 0, 3, 1 ).norm( ));
BOOST_CHECK_SMALL(
std::fabs( static_cast< double >( analyticalValue( i + 3 ) - numericalValue( i + 3 ))),
2.0E-5 * analyticalValue.block( 0, 0, 3, 1 ).norm( ));
1.0E-4 * analyticalValue.block( 0, 0, 3, 1 ).norm( ));
}
}
}
Expand Down

0 comments on commit a08ea11

Please sign in to comment.