diff --git a/exam/test/main.cpp b/exam/test/main.cpp index d531dfe..ab586c8 100644 --- a/exam/test/main.cpp +++ b/exam/test/main.cpp @@ -141,7 +141,14 @@ TEST(EXAM, Logality) FAIL() << "fatal should never have gone this far"; }; + auto fatal_action2 = []() + { + logs::get_logger().log(logs::FATAL, "fatal message2"); + FAIL() << "fatal should never have gone this far"; + }; + EXPECT_FATAL(fatal_action(), "fatal message"); + EXPECT_FATAL(fatal_action2(), "fatal message2"); EXPECT_ERROR(logs::error("error message"), "error message"); EXPECT_WARN(logs::warn("warning message"), "warning message"); EXPECT_INFO(logs::info("information message"), "information message");