Commit 138c3dcc authored by Victor Zverovich's avatar Victor Zverovich

Fix tests.

parent 8f8fd769
...@@ -282,7 +282,7 @@ TEST(ExpectTest, EXPECT_THROW_MSG) { ...@@ -282,7 +282,7 @@ TEST(ExpectTest, EXPECT_THROW_MSG) {
"type std::logic_error.\n Actual: it throws a different type."); "type std::logic_error.\n Actual: it throws a different type.");
EXPECT_NONFATAL_FAILURE( EXPECT_NONFATAL_FAILURE(
EXPECT_THROW_MSG(do_nothing(), std::exception, "test"), EXPECT_THROW_MSG(do_nothing(), std::exception, "test"),
"Expected: DoNothing() throws an exception of type std::exception.\n" "Expected: do_nothing() throws an exception of type std::exception.\n"
" Actual: it throws nothing."); " Actual: it throws nothing.");
EXPECT_NONFATAL_FAILURE( EXPECT_NONFATAL_FAILURE(
EXPECT_THROW_MSG(throw_exception(), std::exception, "other"), EXPECT_THROW_MSG(throw_exception(), std::exception, "other"),
...@@ -300,7 +300,7 @@ TEST(ExpectTest, EXPECT_SYSTEM_ERROR) { ...@@ -300,7 +300,7 @@ TEST(ExpectTest, EXPECT_SYSTEM_ERROR) {
"type fmt::SystemError.\n Actual: it throws a different type."); "type fmt::SystemError.\n Actual: it throws a different type.");
EXPECT_NONFATAL_FAILURE( EXPECT_NONFATAL_FAILURE(
EXPECT_SYSTEM_ERROR(do_nothing(), EDOM, "test"), EXPECT_SYSTEM_ERROR(do_nothing(), EDOM, "test"),
"Expected: DoNothing() throws an exception of type fmt::SystemError.\n" "Expected: do_nothing() throws an exception of type fmt::SystemError.\n"
" Actual: it throws nothing."); " Actual: it throws nothing.");
EXPECT_NONFATAL_FAILURE( EXPECT_NONFATAL_FAILURE(
EXPECT_SYSTEM_ERROR(throw_system_error(), EDOM, "other"), EXPECT_SYSTEM_ERROR(throw_system_error(), EDOM, "other"),
......
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