text: #include "doctest.h"
  #include "influxdblptool/version.h"
  #include <regex>
  using namespace std::literals;
  using namespace crosscode::influxdblptool;
  
  TEST_SUITE("version") {
      TEST_CASE ("Test if version is valid semver") {
          // Regex came from: semver.org
          const std::regex version_regex(R"(^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$)");
          REQUIRE(std::regex_match(std::string{version()},version_regex));
      }
  }
  
  