Move tests from projects/ to tests/
This commit is contained in:
parent
90e2549cec
commit
0fea081ad1
84 changed files with 2429 additions and 2429 deletions
23
tests/ExtraTests/X10-FallbackStringifier.cpp
Normal file
23
tests/ExtraTests/X10-FallbackStringifier.cpp
Normal file
|
@ -0,0 +1,23 @@
|
|||
// 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{});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue