blob: 4538dde5106a8dcce5c548a54e7f129a8a44dc57 [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);
}
}
}