Skip to content

Commit

Permalink
Fix version tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jonpas committed Mar 3, 2024
1 parent ffa85e1 commit 8f46f4c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/base/tests/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ TEST_CASE("Version numbers are correctly set and returned.", "[base]") {
}
}

TEST_CASE("Git information are correctly set and returned.", "[base]") {
TEST_CASE("Git information is correctly set and returned.", "[base]") {
REQUIRE(@__idi_namespace@::base::get_git_hash_short().compare(@__idi_c_caps_namespace@_VERSION_GIT_HASH_SHORT) == 0);
REQUIRE(@__idi_namespace@::base::get_git_hash_long().compare(@__idi_c_caps_namespace@_VERSION_GIT_HASH_FULL) == 0);
REQUIRE(@__idi_namespace@::base::get_git_branch().compare(@__idi_c_caps_namespace@_VERSION_GIT_BRANCH) == 0);
Expand Down
2 changes: 1 addition & 1 deletion src/base/tests/test_public.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ TEST_CASE("Version numbers are correctly set and returned.", "[base]") {
}
}

TEST_CASE("Git information are correctly set and returned.", "[base]") {
TEST_CASE("Git information is correctly set and returned.", "[base]") {
SECTION("Internal API calls.") {
REQUIRE_THAT( @__idi_c_namespace@_get_git_hash_short(), Catch::Matchers::Equals(@__idi_c_caps_namespace@_VERSION_GIT_HASH_SHORT) );
REQUIRE_THAT( @__idi_c_namespace@_get_git_hash_long(), Catch::Matchers::Equals(@__idi_c_caps_namespace@_VERSION_GIT_HASH_FULL) );
Expand Down
8 changes: 4 additions & 4 deletions src/main/tests/dll_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
#include <catch2/matchers/catch_matchers_all.hpp>
#include <catch2/generators/catch_generators_all.hpp>

TEST_CASE("Version numbers are correctly set and returned.", "[base]") {
TEST_CASE("Version number is valid.", "[main]") {
SECTION("Public API calls.") {
REQUIRE(@__idi_c_namespace@_get_version_major() != -1);
REQUIRE(@__idi_c_namespace@_get_version_minor() != -1);
REQUIRE(@__idi_c_namespace@_get_version_patch() != -1);
REQUIRE_FALSE((@__idi_c_namespace@_get_version_major() == 0
&& @__idi_c_namespace@_get_version_minor() == 0
&& @__idi_c_namespace@_get_version_patch() == 0));
}
}

0 comments on commit 8f46f4c

Please sign in to comment.