Deep EXPECT_EQ with double values #4394
Unanswered
andrea-cassioli-maersk
asked this question in
Community Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am writing some tests where I need to compare two
struct
that contains some nesteddouble
values, like in this simplified exampleCalling
EXPECT_EQ
sometimes fails for small numerical differences on they
member ofB
. In general I would useEXPECT_DOUBLE_EQ
for comparison amongdouble
values, but here I cannot figure out what I should do (except of course compare all fields explicitly...).Any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions