diff --git a/tests/unit/tests_high_five_base.cpp b/tests/unit/tests_high_five_base.cpp index 02ce7a04d..7cd7c6fe8 100644 --- a/tests/unit/tests_high_five_base.cpp +++ b/tests/unit/tests_high_five_base.cpp @@ -2518,6 +2518,12 @@ TEST_CASE("Version Numbers") { std::to_string(patch); CHECK(version == expected); + +#if defined(HIGHFIVE_VERSION_PRERELEASE) + int prerelease = HIGHFIVE_VERSION_PRERELEASE; + expected += "-beta" + std::to_string(prerelease); +#endif + CHECK(HIGHFIVE_VERSION_STRING == expected); }