mirror of
https://github.com/fmtlib/fmt.git
synced 2025-11-25 03:39:56 +01:00
Fix symbol leak (#3627)
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
This commit is contained in:
committed by
GitHub
parent
e25370093a
commit
016b1faede
@@ -443,6 +443,10 @@ TEST(memory_buffer_test, max_size_allocator_overflow) {
|
||||
EXPECT_THROW(buffer.resize(161), std::exception);
|
||||
}
|
||||
|
||||
TEST(format_test, exception_from_lib) {
|
||||
EXPECT_THROW_MSG(fmt::throw_format_error("test"), format_error, "test");
|
||||
}
|
||||
|
||||
TEST(format_test, escape) {
|
||||
EXPECT_EQ("{", fmt::format("{{"));
|
||||
EXPECT_EQ("before {", fmt::format("before {{"));
|
||||
|
||||
Reference in New Issue
Block a user