Sergej Andrejev
Sergej Andrejev

Reputation: 9413

CPPUnit array assert

I'm kinda new to C++ and even more CPPUnit. Can somebody tell me what should I use to assert for array values (compare them to expected). Should I use memcmp or is there something better in CPPUnit, C++ in general or any other library?

Upvotes: 4

Views: 1768

Answers (1)

Karl Knechtel
Karl Knechtel

Reputation: 61526

In modern C++, we compare ranges of data for equality with std::equal.

Upvotes: 5

Related Questions