I am wondering what the "correct/best" way to test equality of two std::maps using the googletest framework is?
The catch is that the std::map has some pointers in the values and I want to test that the thing they point to is correct across the two std::maps.
For example my map has the following signature:
std::map<int, std::vector<std::pair<MyClass1*, MyClass2*>>>
So I want to make sure the values of MyClass1 and MyClass2 pointers are the same across the two maps I am testing.
Aucun commentaire:
Enregistrer un commentaire