diff options
| author | Martin Hořeňovský | 2018-08-31 21:27:35 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2018-08-31 21:27:35 +0200 |
| commit | f3972f06959e6e50d4415472f62b638128aa0e17 (patch) | |
| tree | 452d8304e2108254e30e1929e6e6b77976104007 /projects/ExtraTests/X11-DisableStringification.cpp | |
| parent | 38e1731f69349fbb290a8675a4cd09ba30500bb6 (diff) | |
| download | catch3-f3972f06959e6e50d4415472f62b638128aa0e17.tar.gz | |
Add test for CATCH_CONFIG_DISABLE_STRINGIFICATION
Diffstat (limited to 'projects/ExtraTests/X11-DisableStringification.cpp')
| -rw-r--r-- | projects/ExtraTests/X11-DisableStringification.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/projects/ExtraTests/X11-DisableStringification.cpp b/projects/ExtraTests/X11-DisableStringification.cpp new file mode 100644 index 00000000..7a93f6e2 --- /dev/null +++ b/projects/ExtraTests/X11-DisableStringification.cpp @@ -0,0 +1,16 @@ +// X11-DisableStringification.cpp +// Test that stringification of original expression can be disabled +// this is a workaround for VS 2017 issue with Raw String literal +// and preprocessor token pasting. In other words, hopefully this test +// will be deleted soon :-) + +#define CATCH_CONFIG_MAIN +#include <catch2/catch.hpp> + +struct Hidden {}; + +bool operator==(Hidden, Hidden) { return true; } + +TEST_CASE("DisableStringification") { + REQUIRE( Hidden{} == Hidden{} ); +} |