mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-05 17:40:40 +02:00
20 lines
534 B
C++
20 lines
534 B
C++
// SPDX-License-Identifier: LGPL-3.0-or-other
|
|
// Copyright (C) 2021 Contributors to the SLS Detector Package
|
|
#include "catch.hpp"
|
|
#include "sls/Version.h"
|
|
|
|
namespace sls {
|
|
|
|
TEST_CASE("check if version is semantic", "[.version]") {
|
|
|
|
auto [version_string, has_semantic_version] =
|
|
GENERATE(std::make_tuple("developer 0x250512", false),
|
|
std::make_tuple("0.0.0 0x250512", false));
|
|
|
|
Version version(version_string);
|
|
|
|
CHECK(version.hasSemanticVersioning() == has_semantic_version);
|
|
}
|
|
|
|
} // namespace sls
|