@@ -42,8 +42,8 @@ void run_on_all_variants(
4242 REQUIRE_THAT (
4343 result,
4444 // NOLINTNEXTLINE(whitespace/braces)
45- Catch::Matchers::Vector::EqualsMatcher<std::string>{
46- expected_results.no_strip_no_remove } );
45+ Catch::Matchers::Equals (
46+ std::vector<std::string>( expected_results.no_strip_no_remove )) );
4747 }
4848 }
4949 WHEN (" Not stripping, removing empty" )
@@ -56,8 +56,8 @@ void run_on_all_variants(
5656 REQUIRE_THAT (
5757 result,
5858 // NOLINTNEXTLINE(whitespace/braces)
59- Catch::Matchers::Vector::EqualsMatcher<std::string>{
60- expected_results.no_strip_remove_empty } );
59+ Catch::Matchers::Equals (
60+ std::vector<std::string>( expected_results.no_strip_remove_empty )) );
6161 }
6262 }
6363 WHEN (" Stripping, not removing empty" )
@@ -70,8 +70,8 @@ void run_on_all_variants(
7070 REQUIRE_THAT (
7171 result,
7272 // NOLINTNEXTLINE(whitespace/braces)
73- Catch::Matchers::Vector::EqualsMatcher<std::string>{
74- expected_results.strip_no_remove } );
73+ Catch::Matchers::Equals (
74+ std::vector<std::string>( expected_results.strip_no_remove )) );
7575 }
7676 }
7777 WHEN (" Stripping and removing empty" )
@@ -84,8 +84,8 @@ void run_on_all_variants(
8484 REQUIRE_THAT (
8585 result,
8686 // NOLINTNEXTLINE(whitespace/braces)
87- Catch::Matchers::Vector::EqualsMatcher<std::string>{
88- expected_results.strip_remove_empty } );
87+ Catch::Matchers::Equals (
88+ std::vector<std::string>( expected_results.strip_remove_empty )) );
8989 }
9090 }
9191}
@@ -146,9 +146,7 @@ SCENARIO("split_string", "[core][utils][string_utils][split_string]")
146146 THEN (" Should get expected vector" )
147147 {
148148 std::vector<std::string> expected_result = {" a" , " b" , " c" };
149- REQUIRE_THAT (
150- result,
151- Catch::Matchers::Vector::EqualsMatcher<std::string>{expected_result});
149+ REQUIRE_THAT (result, Catch::Matchers::Equals (expected_result));
152150 }
153151 }
154152 WHEN (" Not stripping, removing empty" )
@@ -159,9 +157,7 @@ SCENARIO("split_string", "[core][utils][string_utils][split_string]")
159157 THEN (" Should get expected vector" )
160158 {
161159 std::vector<std::string> expected_result = {" a" , " b" , " c" };
162- REQUIRE_THAT (
163- result,
164- Catch::Matchers::Vector::EqualsMatcher<std::string>{expected_result});
160+ REQUIRE_THAT (result, Catch::Matchers::Equals (expected_result));
165161 }
166162 }
167163 // TODO(tkiley): here we should check what happens when trying to enable
0 commit comments