Skip to content

Commit

Permalink
Fix numeric_cast namespace in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vissarion committed Feb 28, 2024
1 parent bc03fb2 commit d76ce3b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/util/rational.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ void test_coordinate_cast(std::string const& s, int expected_nom, int expected_d
void test_numeric_cast()
{
const boost::rational<int> r1(3, 4);
BOOST_CHECK_CLOSE(bg::detail::numeric_cast<double>(r1), 0.75, 0.00001);
BOOST_CHECK_CLOSE(bg::util::numeric_cast<double>(r1), 0.75, 0.00001);

const boost::rational<int> r2(10, 4);
BOOST_CHECK_CLOSE(bg::detail::numeric_cast<double>(r2), 2.5, 0.00001);
BOOST_CHECK_EQUAL(bg::detail::numeric_cast<int>(r2), 2);
BOOST_CHECK_CLOSE(bg::util::numeric_cast<double>(r2), 2.5, 0.00001);
BOOST_CHECK_EQUAL(bg::util::numeric_cast<int>(r2), 2);
}

void test_wkt(std::string const& wkt, std::string const expected_wkt)
Expand Down

0 comments on commit d76ce3b

Please sign in to comment.