Skip to content

Commit

Permalink
Fixed soruce_loc test
Browse files Browse the repository at this point in the history
  • Loading branch information
gabime committed Nov 29, 2024
1 parent 9c1b76f commit 64a013f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_source_location.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ TEST_CASE("test_source_location", "[source_location]") {
// test with source location with parameters
SPDLOG_LOGGER_CALL(logger, spdlog::level::info, "Hello {}", "source location");
REQUIRE(test_sink->lines().size() == 1);
REQUIRE(test_sink->lines()[0] == "test_source_location.cpp:14 Hello source location");
REQUIRE(test_sink->lines()[0] == "test_source_location.cpp:15 Hello source location");
// test with source location without parameters
SPDLOG_LOGGER_CALL(logger, spdlog::level::info, "Hello");
REQUIRE(test_sink->lines().size() == 2);
REQUIRE(test_sink->lines()[1] == "test_source_location.cpp:18 Hello");
REQUIRE(test_sink->lines()[1] == "test_source_location.cpp:19 Hello");
}


Expand Down

0 comments on commit 64a013f

Please sign in to comment.