Tomáš Pecka | 5123e00 | 2020-06-05 15:29:21 +0200 | [diff] [blame] | 1 | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN |
2 | #include <doctest/doctest.h> | ||||
3 | #include <trompeloeil.hpp> | ||||
4 | |||||
5 | namespace trompeloeil { | ||||
6 | |||||
7 | template <> | ||||
8 | void 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 | } |