Open Source Tomb Raider Engine
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

test.h 349B

1234567891011121314151617181920
  1. /*!
  2. * \file test/test.h
  3. * \brief Common Unit Test helpers
  4. *
  5. * \author xythobuz
  6. */
  7. #ifndef _TEST_H
  8. #define _TEST_H
  9. #include <iostream>
  10. #define assertEqual(x, y) if (x != y) { \
  11. std::cout << "Assertion failed:" << std::endl; \
  12. std::cout << #x << " == " << #y << " (" << x << ", " << y << ")" << std::endl; \
  13. return 1; \
  14. }
  15. #endif