Update tests after changing an error message

This commit is contained in:
Vladimir Goncharov 2020-07-07 19:30:37 +03:00
parent 0a80845e73
commit c46bdea43a

View File

@ -8210,7 +8210,7 @@ TEST(ThrowsTest, FailWrongTypeNonStd) {
[]() { throw 10; }, &listener));
EXPECT_THAT(
listener.str(),
testing::HasSubstr("throws an exception of some other type"));
testing::HasSubstr("throws an exception of an unknown type"));
}
TEST(ThrowsTest, FailNoThrow) {
@ -8262,7 +8262,7 @@ TEST_P(ThrowsPredicateTest, FailWrongTypeNonStd) {
[]() { throw 10; }, &listener));
EXPECT_THAT(
listener.str(),
testing::HasSubstr("throws an exception of some other type"));
testing::HasSubstr("throws an exception of an unknown type"));
}
TEST_P(ThrowsPredicateTest, FailWrongMessage) {