From f97cb00737c818dcd707fc2750bb32aafd6afe9e Mon Sep 17 00:00:00 2001 From: gabime Date: Thu, 22 Nov 2018 18:48:32 +0200 Subject: [PATCH] Updated macros tests --- tests/test_macros.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/test_macros.cpp b/tests/test_macros.cpp index cf2bb136..cf917069 100644 --- a/tests/test_macros.cpp +++ b/tests/test_macros.cpp @@ -24,6 +24,16 @@ TEST_CASE("debug and trace w/o format string", "[macros]]") REQUIRE(ends_with(file_contents(filename), "Test message 2\n")); REQUIRE(count_lines(filename) == 1); + + spdlog::set_default_logger(logger); + + SPDLOG_TRACE("Test message 3"); + SPDLOG_DEBUG("Test message {}", 4); + logger->flush(); + + REQUIRE(ends_with(file_contents(filename), "Test message 4\n")); + REQUIRE(count_lines(filename) == 2); + } TEST_CASE("disable param evaluation", "[macros]")