"vscode:/vscode.git/clone" did not exist on "56070d8903bc7b9abbba952afa5e54209a08c0a2"
Commit c46bdea4 authored by Vladimir Goncharov's avatar Vladimir Goncharov
Browse files

Update tests after changing an error message

parent 0a80845e
...@@ -8210,7 +8210,7 @@ TEST(ThrowsTest, FailWrongTypeNonStd) { ...@@ -8210,7 +8210,7 @@ TEST(ThrowsTest, FailWrongTypeNonStd) {
[]() { throw 10; }, &listener)); []() { throw 10; }, &listener));
EXPECT_THAT( EXPECT_THAT(
listener.str(), listener.str(),
testing::HasSubstr("throws an exception of some other type")); testing::HasSubstr("throws an exception of an unknown type"));
} }
TEST(ThrowsTest, FailNoThrow) { TEST(ThrowsTest, FailNoThrow) {
...@@ -8262,7 +8262,7 @@ TEST_P(ThrowsPredicateTest, FailWrongTypeNonStd) { ...@@ -8262,7 +8262,7 @@ TEST_P(ThrowsPredicateTest, FailWrongTypeNonStd) {
[]() { throw 10; }, &listener)); []() { throw 10; }, &listener));
EXPECT_THAT( EXPECT_THAT(
listener.str(), listener.str(),
testing::HasSubstr("throws an exception of some other type")); testing::HasSubstr("throws an exception of an unknown type"));
} }
TEST_P(ThrowsPredicateTest, FailWrongMessage) { TEST_P(ThrowsPredicateTest, FailWrongMessage) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment