Skip to content

Commit

Permalink
Add test for version module
Browse files Browse the repository at this point in the history
Signed-off-by: Uilian Ries <[email protected]>
  • Loading branch information
uilianries committed Jun 30, 2024
1 parent c30bd4a commit 9acae1d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/modules/version/VersionTest.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#include "faker-cxx/Version.h"

#include "gtest/gtest.h"

using namespace ::testing;

class VersionTest : public Test
{
public:
};

TEST_F(VersionTest, shouldGenerateVersion)
{
ASSERT_GE(FAKER_CXX_VERSION_MAJOR, 2);
ASSERT_GE(FAKER_CXX_VERSION_MINOR, 0);
ASSERT_GE(FAKER_CXX_VERSION_PATCH, 0);
ASSERT_TRUE(FAKER_CXX_VERSION);
}

0 comments on commit 9acae1d

Please sign in to comment.