diff options
Diffstat (limited to 'zencore/intmath.cpp')
| -rw-r--r-- | zencore/intmath.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/zencore/intmath.cpp b/zencore/intmath.cpp index 98c345c79..5a686dc8e 100644 --- a/zencore/intmath.cpp +++ b/zencore/intmath.cpp @@ -3,7 +3,7 @@ #include <zencore/endian.h> #include <zencore/intmath.h> -#include <doctest/doctest.h> +#include <zencore/testing.h> namespace zen { @@ -12,6 +12,8 @@ namespace zen { // Testing related code follows... // +#if ZEN_WITH_TESTS + void intmath_forcelink() { @@ -58,4 +60,6 @@ TEST_CASE("intmath") CHECK(ByteSwap(uint64_t(0x214d'6172'7469'6e21ull)) == 0x216e'6974'7261'4d21ull); } +#endif + } // namespace zen |