Has Google Test compare functions that operate on the binary representation of given object?
I have two struct
-objects of same type but no compare function. The struct
is a plain-old-data-type (POD) so that a binary compare would work.
I need something like:
struct A{
int some_data;
};
TEST(test, case){
A a1{0}, a2{1};
EXPECT_BINARY_EQ(a1, a2);
}
What is the simplest way to do that in C++ with gtest.