blob: 967875981af1139c8462cca12486893d0564ddee [file] [log] [blame]
Tomáš Pecka5123e002020-06-05 15:29:21 +02001#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
2#include <doctest/doctest.h>
3#include <trompeloeil.hpp>
4
5namespace trompeloeil {
6
7template <>
8void reporter<specialized>::send(severity s, const char* file, unsigned long line, const char* msg)
9{
10 auto f = line ? file : "[file/line unavailable]";
11 if (s == severity::fatal) {
12 ADD_FAIL_AT(f, line, msg);
13 } else {
14 ADD_FAIL_CHECK_AT(f, line, msg);
15 }
16}
17}