Commit f474e606 authored by Jonas Jelten's avatar Jonas Jelten 🥕
Browse files

fix using epsilon in the float comparison test helpers

parent 6516caf2
......@@ -74,7 +74,7 @@ namespace elsa
* @param margin allowed tolerance in percentage
*/
template <typename T>
[[nodiscard]] bool checkApproxEq(T left, SelfType_t<T> right, double margin = 0.01)
[[nodiscard]] bool checkApproxEq(T left, SelfType_t<T> right, double margin = epsilon)
{
using Approx = doctest::Approx;
......@@ -95,7 +95,7 @@ namespace elsa
}
template <typename T>
[[nodiscard]] bool checkApproxNe(T left, SelfType_t<T> right, double margin = 0.01)
[[nodiscard]] bool checkApproxNe(T left, SelfType_t<T> right, double margin = epsilon)
{
using Approx = doctest::Approx;
......
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