Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define REQUIRE_EQUAL(first, second) \
- do { \
- auto firstValue = (first); \
- auto secondValue = (second); \
- if (firstValue != secondValue) { \
- std::ostringstream oss; \
- oss << "Require equal failed: " << #first << " != " << #second << " (" \
- << firstValue << " != " << secondValue << ")\n"; \
- throw TestNotPassedException(oss.str()); \
- } \
- } while (false)
Add Comment
Please, Sign In to add comment