@@ -74,13 +74,13 @@ TEMPLATE_LIST_TEST_CASE(
7474 } else {
7575 REQUIRE_THROWS_MATCHES (
7676 (make_observer_from_this<TestType>(orig_ptr)), oup::bad_observer_from_this,
77- snatch::matchers::with_what_contains{
78- " observer_from_this() called with uninitialized control block" } );
77+ Catch::Matchers::Message (
78+ " observer_from_this() called with uninitialized control block" ) );
7979 REQUIRE_THROWS_MATCHES (
8080 (make_const_observer_from_this<TestType>(orig_ptr)),
8181 oup::bad_observer_from_this,
82- snatch::matchers::with_what_contains{
83- " observer_from_this() called with uninitialized control block" } );
82+ Catch::Matchers::Message (
83+ " observer_from_this() called with uninitialized control block" ) );
8484 }
8585
8686 CHECK_INSTANCES (1 , 0 );
@@ -110,12 +110,12 @@ TEMPLATE_LIST_TEST_CASE("observer from this no owner stack", "[observer_from_thi
110110 } else {
111111 REQUIRE_THROWS_MATCHES (
112112 (make_observer_from_this<TestType>(&obj)), oup::bad_observer_from_this,
113- snatch::matchers::with_what_contains{
114- " observer_from_this() called with uninitialized control block" } );
113+ Catch::Matchers::Message (
114+ " observer_from_this() called with uninitialized control block" ) );
115115 REQUIRE_THROWS_MATCHES (
116116 (make_const_observer_from_this<TestType>(&obj)), oup::bad_observer_from_this,
117- snatch::matchers::with_what_contains{
118- " observer_from_this() called with uninitialized control block" } );
117+ Catch::Matchers::Message (
118+ " observer_from_this() called with uninitialized control block" ) );
119119 }
120120
121121 CHECK_INSTANCES (1 , 0 );
@@ -147,13 +147,13 @@ TEMPLATE_LIST_TEST_CASE(
147147 } else {
148148 REQUIRE_THROWS_MATCHES (
149149 (make_observer_from_this<TestType>(orig_ptr)), oup::bad_observer_from_this,
150- snatch::matchers::with_what_contains{
151- " observer_from_this() called with uninitialized control block" } );
150+ Catch::Matchers::Message (
151+ " observer_from_this() called with uninitialized control block" ) );
152152 REQUIRE_THROWS_MATCHES (
153153 (make_const_observer_from_this<TestType>(orig_ptr)),
154154 oup::bad_observer_from_this,
155- snatch::matchers::with_what_contains{
156- " observer_from_this() called with uninitialized control block" } );
155+ Catch::Matchers::Message (
156+ " observer_from_this() called with uninitialized control block" ) );
157157 }
158158 }
159159
@@ -388,8 +388,8 @@ TEMPLATE_LIST_TEST_CASE("observer from this in constructor", "[observer_from_thi
388388 next_test_object_constructor_calls_observer_from_this = true ;
389389 REQUIRE_THROWS_MATCHES (
390390 (make_pointer_deleter_1<TestType>()), oup::bad_observer_from_this,
391- snatch::matchers::with_what_contains{
392- " observer_from_this() called with uninitialized control block" } );
391+ Catch::Matchers::Message (
392+ " observer_from_this() called with uninitialized control block" ) );
393393 next_test_object_constructor_calls_observer_from_this = false ;
394394 }
395395
0 commit comments