From 3cccb6ffd8ad9aecc8c2c50269103d0fdc5e1cf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klaim=20=28Jo=C3=ABl=20Lamotte=29?= <142265+Klaim@users.noreply.github.com> Date: Wed, 6 Mar 2024 16:24:29 +0100 Subject: [PATCH] Rewritten test to not use `` --- test/main.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/main.cpp b/test/main.cpp index 45911eb8..33d7893c 100644 --- a/test/main.cpp +++ b/test/main.cpp @@ -15,12 +15,15 @@ #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN #include "doctest/doctest.h" -#include +#include #include TEST_CASE("version is readable") { + // TODO: once available on OSX, use `` facility instead. + // We only try to make sure the version valeus are printable, whatever their type. + // AKA this is not written to be fancy but to force conversion to string. using namespace sparrow; - [[maybe_unused]] const std::string printable_version = std::format("sparrow version : {}.{}.{}", SPARROW_VERSION_MAJOR, SPARROW_VERSION_MINOR, SPARROW_VERSION_PATCH); + [[maybe_unused]] const std::string printable_version = std::string("sparrow version : ") + std::to_string(SPARROW_VERSION_MAJOR) + "." + std::to_string(SPARROW_VERSION_MINOR) "." std::to_string(SPARROW_VERSION_PATCH); }