Skip to content

Commit 23db711

Browse files
committed
✅ Update tests
1 parent 6e09d1f commit 23db711

File tree

6 files changed

+16
-21
lines changed

6 files changed

+16
-21
lines changed

tests/main/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.8)
1+
cmake_minimum_required(VERSION 3.12)
22
project(main_tests CXX)
33

44
# ${CMAKE_PROJECT_NAME}: project name of the root CMakeLists.txt
@@ -8,9 +8,9 @@ add_executable(${PROJECT_NAME}
88
)
99

1010
target_link_libraries(${PROJECT_NAME} PRIVATE
11-
iris_tests_config
12-
iris::iris
13-
Catch2::Catch2
11+
StrTpl::StrTpl
12+
StrTplTestsConfig
13+
Catch2::Catch2WithMain
1414
)
1515

1616
add_test(${PROJECT_NAME} ${PROJECT_NAME})

tests/main/main.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
#define CATCH_CONFIG_MAIN
2-
#include <catch2/catch.hpp>
3-
1+
#include <catch2/catch_test_macros.hpp>
42
#include <string_view>
53
#include <unordered_map>
64
#include <strtpl/string_template.hpp>

tests/regex/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.8)
1+
cmake_minimum_required(VERSION 3.12)
22
project(regex_tests CXX)
33

44
# ${CMAKE_PROJECT_NAME}: project name of the root CMakeLists.txt
@@ -8,9 +8,9 @@ add_executable(${PROJECT_NAME}
88
)
99

1010
target_link_libraries(${PROJECT_NAME} PRIVATE
11-
iris_tests_config
12-
iris::iris
13-
Catch2::Catch2
11+
StrTpl::StrTpl
12+
StrTplTestsConfig
13+
Catch2::Catch2WithMain
1414
)
1515

1616
add_test(${PROJECT_NAME} ${PROJECT_NAME})

tests/regex/regex.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
#define CATCH_CONFIG_MAIN
2-
#include <catch2/catch.hpp>
3-
1+
#include <catch2/catch_test_macros.hpp>
42
#include <ranges>
53
#include <string_view>
64
#include <unordered_map>

tests/trailing_view/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.8)
1+
cmake_minimum_required(VERSION 3.12)
22
project(trailing_view_tests CXX)
33

44
# ${CMAKE_PROJECT_NAME}: project name of the root CMakeLists.txt
@@ -8,9 +8,9 @@ add_executable(${PROJECT_NAME}
88
)
99

1010
target_link_libraries(${PROJECT_NAME} PRIVATE
11-
iris_tests_config
12-
iris::iris
13-
Catch2::Catch2
11+
StrTpl::StrTpl
12+
StrTplTestsConfig
13+
Catch2::Catch2WithMain
1414
)
1515

1616
add_test(${PROJECT_NAME} ${PROJECT_NAME})

tests/trailing_view/trailing_view.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
#define CATCH_CONFIG_MAIN
2-
#include <catch2/catch.hpp>
3-
1+
#include <catch2/catch_test_macros.hpp>
2+
#include <catch2/generators/catch_generators.hpp>
43
#include <algorithm> // std::ranges::equal
54
#include <array>
65
#include <vector>

0 commit comments

Comments
 (0)