2018-08-28 09:44:47 +02:00
|
|
|
// X10-FallbackStringifier.cpp
|
|
|
|
// Test that defining fallbackStringifier compiles
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
// A catch-all stringifier
|
|
|
|
template <typename T>
|
|
|
|
std::string fallbackStringifier(T const&) {
|
|
|
|
return "{ !!! }";
|
|
|
|
}
|
|
|
|
|
2019-12-09 10:04:26 +01:00
|
|
|
#include <catch2/catch_default_main.hpp>
|
2020-01-21 15:03:07 +01:00
|
|
|
#include <catch2/catch_test_macros.hpp>
|
2018-08-28 09:44:47 +02:00
|
|
|
|
|
|
|
struct foo {
|
|
|
|
explicit operator bool() const {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
TEST_CASE("aa") {
|
|
|
|
REQUIRE(foo{});
|
|
|
|
}
|