From 71c36fa7d39ed4e0f1b3b315746939dabad881a6 Mon Sep 17 00:00:00 2001 From: Luc Grosheintz Date: Mon, 29 Jul 2024 10:26:14 +0200 Subject: [PATCH] Fix test. --- tests/unit/tests_high_five_base.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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); }