Logo
Explore Help
Sign In
feedc0de/Catch2
1
0
Fork 0
You've already forked Catch2
forked from catchorg/Catch2
Code Pull Requests Activity
Files
60dfec559fe32db97552fcfec4fecc73f1246d8d
Catch2/tests/ExtraTests/X10-FallbackStringifier.cpp

23 lines
382 B
C++
Raw Normal View History

Add ExtraTests infrastructure This means * a new cmake option, `CATCH_BUILD_EXTRA_TESTS`, that conditionally includes the ExtraTests subfolder * building and running them on some of the Travis build images * An example configuration test In the future these should be extended to cover most of the configuration options in Catch2, but this is a start.
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 "{ !!! }";
}
Piecemeal includes in extra-tests
2020-01-21 15:03:07 +01:00
#include <catch2/catch_test_macros.hpp>
Add ExtraTests infrastructure This means * a new cmake option, `CATCH_BUILD_EXTRA_TESTS`, that conditionally includes the ExtraTests subfolder * building and running them on some of the Travis build images * An example configuration test In the future these should be extended to cover most of the configuration options in Catch2, but this is a start.
2018-08-28 09:44:47 +02:00
struct foo {
explicit operator bool() const {
return true;
}
};
TEST_CASE("aa") {
REQUIRE(foo{});
}
Copy Permalink
Powered by Gitea Version: 1.25.4 Page: 304ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API