diff options
author | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2018-07-17 17:35:23 +0200 |
---|---|---|
committer | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2018-07-18 11:46:45 +0200 |
commit | 2e043c145d7d5802121e91b417590f2d4171d342 (patch) | |
tree | f02327ac20a379d9023b81f6a83300d8e702bae8 /tests | |
parent | 93612c333d6aa0f7d80bd286d9983ce5047a0fd8 (diff) | |
download | astra-2e043c145d7d5802121e91b417590f2d4171d342.tar.gz astra-2e043c145d7d5802121e91b417590f2d4171d342.tar.bz2 astra-2e043c145d7d5802121e91b417590f2d4171d342.tar.xz astra-2e043c145d7d5802121e91b417590f2d4171d342.zip |
Fix potential double/float confusion
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_FanFlatProjectionGeometry2D.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_FanFlatProjectionGeometry2D.cpp b/tests/test_FanFlatProjectionGeometry2D.cpp index 6b14b18..29e8a99 100644 --- a/tests/test_FanFlatProjectionGeometry2D.cpp +++ b/tests/test_FanFlatProjectionGeometry2D.cpp @@ -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 |