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
Uh oh!
There was an error while loading. Please reload this page.
-
I am writing some tests where I need to compare two
structthat contains some nesteddoublevalues, like in this simplified exampleCalling
EXPECT_EQsometimes fails for small numerical differences on theymember ofB. In general I would useEXPECT_DOUBLE_EQfor comparison amongdoublevalues, 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