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:
Rémi Verschelde
2021-01-08 11:17:36 +01:00
parent 0abbefd94a
commit 7917cb12df
3 changed files with 236 additions and 110 deletions

View File

@@ -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 {