Commit bbd32929 authored by Konstantinos Chatzilygeroudis's avatar Konstantinos Chatzilygeroudis
Browse files

Boost_check_close gets a percentage as an argument

parent 274d1bca
......@@ -106,8 +106,8 @@ BOOST_AUTO_TEST_CASE(test_text_archive)
Eigen::VectorXd s = tools::random_vector(3).array() * 4.0 - 2.0;
auto v1 = gp.query(s);
auto v2 = gp2.query(s);
BOOST_CHECK_CLOSE(std::get<0>(v1)[0], std::get<0>(v2)[0], 1e-10);
BOOST_CHECK_CLOSE(std::get<1>(v1), std::get<1>(v2), 1e-10);
BOOST_CHECK_SMALL(std::abs(std::get<0>(v1)[0] - std::get<0>(v2)[0]), 1e-10);
BOOST_CHECK_SMALL(std::abs(std::get<1>(v1) - std::get<1>(v2)), 1e-10);
}
}
......@@ -147,7 +147,7 @@ BOOST_AUTO_TEST_CASE(test_bin_archive)
Eigen::VectorXd s = tools::random_vector(3).array() * 4.0 - 2.0;
auto v1 = gp.query(s);
auto v2 = gp2.query(s);
BOOST_CHECK_CLOSE(std::get<0>(v1)[0], std::get<0>(v2)[0], 1e-10);
BOOST_CHECK_CLOSE(std::get<1>(v1), std::get<1>(v2), 1e-10);
BOOST_CHECK_SMALL(std::abs(std::get<0>(v1)[0] - std::get<0>(v2)[0]), 1e-10);
BOOST_CHECK_SMALL(std::abs(std::get<1>(v1) - std::get<1>(v2)), 1e-10);
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment