Download build/_deps/catch2-src/projects/ExtraTests/X10-FallbackStringifier.cpp from camenduru/thrust: direct link, hf CLI and curl.
- Browser
- Download file 396 Bytes
-
https://huggingface.co/camenduru/thrust/resolve/main/build/_deps/catch2-src/projects/ExtraTests/X10-FallbackStringifier.cpp
- Command line
-
hf download hf://camenduru/thrust/build/_deps/catch2-src/projects/ExtraTests/X10-FallbackStringifier.cpp
-
curl -L -o X10-FallbackStringifier.cpp https://huggingface.co/camenduru/thrust/resolve/main/build/_deps/catch2-src/projects/ExtraTests/X10-FallbackStringifier.cpp
396 Bytes
| // X10-FallbackStringifier.cpp | |
| // Test that defining fallbackStringifier compiles | |
| // A catch-all stringifier | |
| template <typename T> | |
| std::string fallbackStringifier(T const&) { | |
| return "{ !!! }"; | |
| } | |
| struct foo { | |
| explicit operator bool() const { | |
| return true; | |
| } | |
| }; | |
| TEST_CASE("aa") { | |
| REQUIRE(foo{}); | |
| } | |