test.h 418 B

1234567891011121314151617181920
  1. /*
  2. * Copyright 2010-2016 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. #include <catch/catch.hpp>
  9. #define TEST(_x) TEST_CASE(#_x, "")
  10. #define CHECK_EQUAL(_x, _y) REQUIRE(_x == _y)
  11. #include "dbg.h"
  12. #if !BX_COMPILER_MSVC
  13. # define _strdup strdup
  14. #endif // !BX_COMPILER_MSVC
  15. #endif // __TEST_H__