Skip to content

Commit

Permalink
Use verison in test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Klaim committed Feb 13, 2024
1 parent f4461d8 commit d659e3e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ set(XPARROW_TESTS
)
set(test_target "test_xparrow_lib")
add_executable(${test_target} ${XPARROW_TESTS})
target_link_libraries(${test_target} PRIVATE doctest::doctest)
target_link_libraries(${test_target} PRIVATE xparrow doctest::doctest)
10 changes: 10 additions & 0 deletions test/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,13 @@
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include "doctest/doctest.h"

#include <format>
#include <sstream>

#include <xparrow/xparrow_version.hpp>

TEST_CASE("version is readable")
{
using namespace xparrow;
[[maybe_unused]] const std::string printable_version = std::format("xparrow version : {}.{}.{}", XPARROW_VERSION_MAJOR, XPARROW_VERSION_MINOR, XPARROW_VERSION_PATCH);
}

0 comments on commit d659e3e

Please sign in to comment.