In the tests I am working on I very often compare two variables that are structs with doubles in them ie:typedef struct{double i;double j;} point;Instead of always using:EXPECT_DOUBLE_EQ(point1.i, point2.i);EXPECT_DOUBLE_EQ(point1.j, point2.j);I would like to use:EXPECT_POINT_EQ(point1, point2);and have a predicate that does the compare, but I would like to have the same 4 ULP bounds. So I am wondering if there is an easy way to use EXPECT_DOUBLE_EQ or even EXPECT_NEAR inside of a predicate? Or will I need to implement that myself? Any ideas?--
---
You received this message because you are subscribed to the Google Groups "Google C++ Testing Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to googletestframe...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.