diff options
Diffstat (limited to 'zencore')
| -rw-r--r-- | zencore/include/zencore/testing.h | 16 | ||||
| -rw-r--r-- | zencore/xmake.lua | 1 |
2 files changed, 2 insertions, 15 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 diff --git a/zencore/xmake.lua b/zencore/xmake.lua index 61000f739..e1e649c1d 100644 --- a/zencore/xmake.lua +++ b/zencore/xmake.lua @@ -27,7 +27,6 @@ target('zencore') add_options("zentrace") add_packages( "vcpkg::blake3", - "vcpkg::catch2", "vcpkg::cpr", "vcpkg::curl", -- required by cpr "vcpkg::doctest", |