protot/3rdparty/bx/tests/test.h

22 lines
539 B
C
Raw Permalink Normal View History

2016-08-29 22:31:11 +02:00
/*
2017-04-11 08:16:10 +02:00
* Copyright 2010-2017 Branimir Karadzic. All rights reserved.
2016-08-29 22:31:11 +02:00
* License: https://github.com/bkaradzic/bx#license-bsd-2-clause
*/
#ifndef __TEST_H__
#define __TEST_H__
#include <bx/bx.h>
2017-04-11 08:16:10 +02:00
BX_PRAGMA_DIAGNOSTIC_PUSH();
BX_PRAGMA_DIAGNOSTIC_IGNORED_MSVC(4312); // warning C4312 : 'reinterpret_cast' : conversion from 'int' to 'const char *' of greater size
2016-08-29 22:31:11 +02:00
#include <catch/catch.hpp>
2017-04-11 08:16:10 +02:00
BX_PRAGMA_DIAGNOSTIC_POP();
2016-08-29 22:31:11 +02:00
#define TEST(_x) TEST_CASE(#_x, "")
#define CHECK_EQUAL(_x, _y) REQUIRE(_x == _y)
#include "dbg.h"
#endif // __TEST_H__