Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
The container registry cleanup task is now completed and the registry can be used normally.
Open sidebar
IP
elsa
Commits
f474e606
Commit
f474e606
authored
Sep 01, 2021
by
Jonas Jelten
🥕
Browse files
fix using epsilon in the float comparison test helpers
parent
6516caf2
Changes
1
Hide whitespace changes
Inline
Side-by-side
elsa/test_routines/testHelpers.h
View file @
f474e606
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment