Files
bx/tests/test.h
Martijn Courteaux 5fb8c15e15 TinySTL attempt 3. (#342)
* Update TinySTL (attempt 2).

* Fix MSVC compilation issue for TinySTL.

* Fix MSVC warning.

* Favor ptrdiff_t for sizes in string.

* Update genie.lua

* Update math_test.cpp

* Update test.h

* Update test.h

---------

Co-authored-by: Бранимир Караџић <branimirkaradzic@gmail.com>
2025-01-31 16:14:20 -08:00

29 lines
817 B
C

/*
* Copyright 2010-2025 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bx/blob/master/LICENSE
*/
#ifndef BX_TEST_H_HEADER_GUARD
#define BX_TEST_H_HEADER_GUARD
#include <bx/bx.h>
BX_PRAGMA_DIAGNOSTIC_PUSH();
BX_PRAGMA_DIAGNOSTIC_IGNORED_MSVC(4312); // warning C4312 : 'reinterpret_cast' : conversion from 'int' to 'const char *' of greater size
BX_PRAGMA_DIAGNOSTIC_IGNORED_CLANG("-Wno-unknown-warning-option");
BX_PRAGMA_DIAGNOSTIC_IGNORED_CLANG("-Wno-nan-infinity-disabled");
#include <catch/catch_amalgamated.hpp>
BX_PRAGMA_DIAGNOSTIC_POP();
#define TEST(_x) TEST_CASE(#_x, "")
#if BX_CONFIG_DEBUG
# define REQUIRE_ASSERTS(_x) REQUIRE_THROWS(_x)
#else
# define REQUIRE_ASSERTS(_x) BX_UNUSED(_x)
#endif // BX_CONFIG_DEBUG
#include "dbg.h"
#endif // BX_TEST_H_HEADER_GUARD