Skip to content

Commit

Permalink
Fix potential double/float confusion
Browse files Browse the repository at this point in the history
  • Loading branch information
wjp committed Jul 18, 2018
1 parent 93612c3 commit 2e043c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_FanFlatProjectionGeometry2D.cpp
Expand Up @@ -81,7 +81,7 @@ BOOST_AUTO_TEST_CASE( testFanFlatProjectionGeometry2D_Offsets )

float t, theta;
geom.getRayParams(0, 2, t, theta);
BOOST_CHECK_SMALL( tan(theta) + 0.25f, (double)astra::eps );
BOOST_CHECK_SMALL( tan(theta) + 0.25, (double)astra::eps );
BOOST_CHECK_SMALL( 17.0f*t*t - 1.0f, astra::eps );

// TODO: add test with large angle
Expand Down

0 comments on commit 2e043c1

Please sign in to comment.