Browse Source

Handwritten test main replaced.

main
offa 3 years ago
parent
commit
243ebbc963
1 changed files with 0 additions and 29 deletions
  1. +0
    -29
      test/TestMain.cpp

+ 0
- 29
test/TestMain.cpp View File



#define CATCH_CONFIG_MAIN #define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp> #include <catch2/catch.hpp>
#include <trompeloeil.hpp>


namespace trompeloeil
{
template <>
void reporter<specialized>::send(severity s, const char* file, unsigned long line, const char* msg)
{
std::ostringstream os;

if( line != 0 )
{
os << file << ':' << line << '\n';
}

os << msg;
const auto failure = os.str();

if( s == severity::fatal )
{
FAIL(failure);
}
else
{
CAPTURE(failure);
CHECK(failure.empty());
}
}
}

Loading…
Cancel
Save