diff --git a/tests/catch.h b/tests/catch.h index 8e780a2d..27888c9d 100644 --- a/tests/catch.h +++ b/tests/catch.h @@ -13299,9 +13299,12 @@ RegexMatcher::RegexMatcher( bool RegexMatcher::match(std::string const &matchee) const { - auto flags = std::regex::ECMAScript | - std::regex::multiline; // ECMAScript is the default syntax - // option anyway + auto flags = std::regex::ECMAScript; // ECMAScript is the default syntax + // option anyway +#if !defined(_WIN32) + flags |= std::regex::multiline; +#endif + if (m_caseSensitivity == CaseSensitive::Choice::No) { flags |= std::regex::icase; } diff --git a/tests/t00056/test_case.h b/tests/t00056/test_case.h index d271740c..d523766f 100644 --- a/tests/t00056/test_case.h +++ b/tests/t00056/test_case.h @@ -55,7 +55,7 @@ TEST_CASE("t00056", "[test-case][class]") src, IsConceptRequirement(_A("iterable"), "container.end()")); #ifdef _MSC_VER - REQUIRE_THAT(puml, + REQUIRE_THAT(src, IsConceptRequirement( _A("convertible_to_string"), "std::string{s}")); #else @@ -162,7 +162,7 @@ TEST_CASE("t00056", "[test-case][class]") src, IsConceptRequirement(_A("iterable"), "container.end()")); #ifdef _MSC_VER - REQUIRE_THAT(puml, + REQUIRE_THAT(src, IsConceptRequirement( _A("convertible_to_string"), "std::string{s}")); #else