blob: 967875981af1139c8462cca12486893d0564ddee [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);
}
}
}