From 2e043c145d7d5802121e91b417590f2d4171d342 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Tue, 17 Jul 2018 17:35:23 +0200 Subject: Fix potential double/float confusion --- tests/test_FanFlatProjectionGeometry2D.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3