test.h 539 B

123456789101112131415161718192021
  1. /*
  2. * Copyright 2010-2018 Branimir Karadzic. All rights reserved.
  3. * License: https://github.com/bkaradzic/bx#license-bsd-2-clause
  4. */
  5. #ifndef __TEST_H__
  6. #define __TEST_H__
  7. #include <bx/bx.h>
  8. BX_PRAGMA_DIAGNOSTIC_PUSH();
  9. BX_PRAGMA_DIAGNOSTIC_IGNORED_MSVC(4312); // warning C4312 : 'reinterpret_cast' : conversion from 'int' to 'const char *' of greater size
  10. #include <catch/catch.hpp>
  11. BX_PRAGMA_DIAGNOSTIC_POP();
  12. #define TEST(_x) TEST_CASE(#_x, "")
  13. #define CHECK_EQUAL(_x, _y) REQUIRE(_x == _y)
  14. #include "dbg.h"
  15. #endif // __TEST_H__