AlphaFold3 / weight /_dep /Catch2 /projects /ExtraTests /X10-FallbackStringifier.cpp
wuxing0105's picture
Add files using upload-large-folder tool
0bd2a62 verified
Raw
History Blame Contribute Delete
396 Bytes
// X10-FallbackStringifier.cpp
// Test that defining fallbackStringifier compiles
#include <string>
// A catch-all stringifier
template <typename T>
std::string fallbackStringifier(T const&) {
return "{ !!! }";
}
#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
struct foo {
explicit operator bool() const {
return true;
}
};
TEST_CASE("aa") {
REQUIRE(foo{});
}