diff options
| author | Stefan Boberg <[email protected]> | 2023-03-07 15:00:28 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-03-07 15:00:28 +0100 |
| commit | 28ed9533d5f50a68c2daf97a43dacc2c58a33d8b (patch) | |
| tree | 5b04a0261d2536cc3b97553710c894185575dc19 /zencore/include | |
| parent | store cache rawhash and rawsize for unstructured cache values (#234) (diff) | |
| download | zen-28ed9533d5f50a68c2daf97a43dacc2c58a33d8b.tar.xz zen-28ed9533d5f50a68c2daf97a43dacc2c58a33d8b.zip | |
removed catch2 (#241)
removed catch2 since it's de facto not supported due to the lack of multithreading support
Diffstat (limited to 'zencore/include')
| -rw-r--r-- | zencore/include/zencore/testing.h | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/zencore/include/zencore/testing.h b/zencore/include/zencore/testing.h index faa4eef6c..bd55524aa 100644 --- a/zencore/include/zencore/testing.h +++ b/zencore/include/zencore/testing.h @@ -9,26 +9,14 @@ # define DOCTEST_CONFIG_IMPLEMENT #endif -#ifndef ZEN_USE_CATCH2 -# define ZEN_USE_CATCH2 0 -#endif - #if ZEN_WITH_TESTS -# if ZEN_USE_CATCH2 -# include <catch2/catch.hpp> -# define SUBCASE(x) SECTION(x) -# define CHECK_EQ(x, y) CHECK((x) == (y)) -# define CHECK_MESSAGE(x, y) CHECK(x) -# define ZEN_RUN_TESTS(argC, argV) Catch::Session().run(argC, argV) -# else -# include <doctest/doctest.h> -# define ZEN_RUN_TESTS(argC, argV) doctest::Context(argc, argv).run() +# include <doctest/doctest.h> +# define ZEN_RUN_TESTS(argC, argV) doctest::Context(argc, argv).run() inline auto Approx(auto Value) { return doctest::Approx(Value); } -# endif #else # define ZEN_RUN_TESTS(argC, argV) #endif |