diff options
Diffstat (limited to 'unittest/test_offline.cc')
-rw-r--r-- | unittest/test_offline.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unittest/test_offline.cc b/unittest/test_offline.cc index 92af78c..75bd316 100644 --- a/unittest/test_offline.cc +++ b/unittest/test_offline.cc @@ -19,7 +19,7 @@ * SPDX-License-Identifier: LGPL-3.0 */ -#include "catch.hpp" +#include "catch2/catch.hpp" #include <NitrokeyManager.h> #include <memory> #include <string> @@ -179,7 +179,7 @@ TEST_CASE("Test version getter", "[fast]") { std::string s = library_version; std::string version("v[0-9]+\\.[0-9]+(\\.[0-9]+)?"); std::string git_suffix("-[0-9]+-g[0-9a-z]+"); - std::regex pattern(version + "(" + git_suffix + "|)"); + std::regex pattern(version + "(" + git_suffix + ")?"); REQUIRE(std::regex_match(s, pattern)); } |