Fix parser tests part 2 segment issues

This commit is contained in:
ado 2024-02-19 00:16:22 +01:00
parent e4fba8a918
commit 775b8c93e2
4 changed files with 7 additions and 14 deletions

View File

@ -109,7 +109,7 @@ struct get_matcher<Matcher, T, Ts...> {
struct is_matcher : is_instance_of_matcher<U, Matcher> {}; struct is_matcher : is_instance_of_matcher<U, Matcher> {};
static_assert(count_v<is_matcher, T, Ts...> <= 1, static_assert(count_v<is_matcher, T, Ts...> <= 1,
"the same matcher cannot" "the same matcher cannot "
"be defined multiple times"); "be defined multiple times");
using type = std::conditional_t<is_matcher<T>::value, T, using type = std::conditional_t<is_matcher<T>::value, T,
typename get_matcher<Matcher, Ts...>::type>; typename get_matcher<Matcher, Ts...>::type>;

View File

@ -1,7 +1,7 @@
#define SEGMENT_NAME "segment3" #define SEGMENT_NAME "segment4"
#include "test_parser2.hpp" #include "test_parser2.hpp"
TEST_CASE("parser test various cases version 2 segment 3") { TEST_CASE("parser test various cases version 2 segment 4") {
#ifdef CMAKE_GITHUB_CI #ifdef CMAKE_GITHUB_CI
using quote = ss::quote<'"'>; using quote = ss::quote<'"'>;
using escape = ss::escape<'\\'>; using escape = ss::escape<'\\'>;

View File

@ -1,7 +1,7 @@
#define SEGMENT_NAME "segment3" #define SEGMENT_NAME "segment5"
#include "test_parser2.hpp" #include "test_parser2.hpp"
TEST_CASE("parser test various cases version 2 segment 3") { TEST_CASE("parser test various cases version 2 segment 5") {
#ifdef CMAKE_GITHUB_CI #ifdef CMAKE_GITHUB_CI
using quote = ss::quote<'"'>; using quote = ss::quote<'"'>;
using escape = ss::escape<'\\'>; using escape = ss::escape<'\\'>;

View File

@ -1,18 +1,11 @@
#define SEGMENT_NAME "segment4" #define SEGMENT_NAME "segment6"
#include "test_parser2.hpp" #include "test_parser2.hpp"
TEST_CASE("parser test various cases version 2 segment 4") { TEST_CASE("parser test various cases version 2 segment 6") {
using quote = ss::quote<'"'>; using quote = ss::quote<'"'>;
using escape = ss::escape<'\\'>; using escape = ss::escape<'\\'>;
using multiline = ss::multiline; using multiline = ss::multiline;
#ifdef CMAKE_GITHUB_CI
using trim = ss::trim<' '>;
test_option_combinations3<escape, quote, multiline>(); test_option_combinations3<escape, quote, multiline>();
test_option_combinations3<escape, quote, multiline, trim>();
#else
test_option_combinations3<escape, quote, multiline>();
#endif
} }