blob: b333b7d9f06922ebb246d12873e5689ef11390d9 [file] [log] [blame]
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include <doctest/doctest.h>
#include <trompeloeil.hpp>
namespace trompeloeil
{
template <>
void reporter<specialized>::send(
severity s,
const char* file,
unsigned long line,
const char* msg)
{
auto f = line ? file : "[file/line unavailable]";
if (s == severity::fatal)
{
ADD_FAIL_AT(f, line, msg);
}
else
{
ADD_FAIL_CHECK_AT(f, line, msg);
}
}
}