瀏覽代碼

Handwritten test main replaced.

main
offa 3 年之前
父節點
當前提交
243ebbc963
共有 1 個文件被更改,包括 0 次插入29 次删除
  1. +0
    -29
      test/TestMain.cpp

+ 0
- 29
test/TestMain.cpp 查看文件

@@ -22,32 +22,3 @@

#define CATCH_CONFIG_MAIN
#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…
取消
儲存