test.h 586 B

123456789101112131415161718192021
  1. /*
  2. * Copyright 2010-2022 Branimir Karadzic. All rights reserved.
  3. * License: https://github.com/bkaradzic/bx/blob/master/LICENSE
  4. */
  5. #ifndef BX_TEST_H_HEADER_GUARD
  6. #define BX_TEST_H_HEADER_GUARD
  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_amalgamated.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 // BX_TEST_H_HEADER_GUARD