mirror of
https://github.com/boostorg/geometry.git
synced 2025-05-11 13:34:10 +00:00
Fix numeric_cast namespace in tests
This commit is contained in:
parent
bc03fb2305
commit
d76ce3b0c1
@ -30,11 +30,11 @@ void test_coordinate_cast(std::string const& s, int expected_nom, int expected_d
|
|||||||
void test_numeric_cast()
|
void test_numeric_cast()
|
||||||
{
|
{
|
||||||
const boost::rational<int> r1(3, 4);
|
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);
|
const boost::rational<int> r2(10, 4);
|
||||||
BOOST_CHECK_CLOSE(bg::detail::numeric_cast<double>(r2), 2.5, 0.00001);
|
BOOST_CHECK_CLOSE(bg::util::numeric_cast<double>(r2), 2.5, 0.00001);
|
||||||
BOOST_CHECK_EQUAL(bg::detail::numeric_cast<int>(r2), 2);
|
BOOST_CHECK_EQUAL(bg::util::numeric_cast<int>(r2), 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_wkt(std::string const& wkt, std::string const expected_wkt)
|
void test_wkt(std::string const& wkt, std::string const expected_wkt)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user