From 9acae1de8e15836db609ce587392cce4ce5876dd Mon Sep 17 00:00:00 2001 From: Uilian Ries Date: Sun, 30 Jun 2024 12:39:19 +0200 Subject: [PATCH] Add test for version module Signed-off-by: Uilian Ries --- tests/modules/version/VersionTest.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tests/modules/version/VersionTest.cpp diff --git a/tests/modules/version/VersionTest.cpp b/tests/modules/version/VersionTest.cpp new file mode 100644 index 000000000..73a08e045 --- /dev/null +++ b/tests/modules/version/VersionTest.cpp @@ -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); +}