mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
doctest: Update to 2.4.4
Make ClassDB test macros enforce their msg to be constructed as String, since doctest 2.4.2 changes the message passing to vararg.
This commit is contained in:
@@ -42,10 +42,10 @@
|
||||
|
||||
#include "tests/test_macros.h"
|
||||
|
||||
#define TEST_COND DOCTEST_CHECK_FALSE_MESSAGE
|
||||
#define TEST_FAIL DOCTEST_FAIL
|
||||
#define TEST_FAIL_COND DOCTEST_REQUIRE_FALSE_MESSAGE
|
||||
#define TEST_FAIL_COND_WARN DOCTEST_WARN_FALSE_MESSAGE
|
||||
#define TEST_COND(cond, msg) DOCTEST_CHECK_FALSE_MESSAGE(cond, String(msg))
|
||||
#define TEST_FAIL(cond, msg) DOCTEST_FAIL(cond, String(msg))
|
||||
#define TEST_FAIL_COND(cond, msg) DOCTEST_REQUIRE_FALSE_MESSAGE(cond, String(msg))
|
||||
#define TEST_FAIL_COND_WARN(cond, msg) DOCTEST_WARN_FALSE_MESSAGE(cond, String(msg))
|
||||
|
||||
namespace TestClassDB {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user