mirror of
https://github.com/fmtlib/fmt.git
synced 2026-05-05 12:04:11 +02:00
Fix handling of empty string_view (#689)
This commit is contained in:
+2
-1
@@ -1196,7 +1196,8 @@ TEST(FormatterTest, FormatString) {
|
||||
}
|
||||
|
||||
TEST(FormatterTest, FormatStringView) {
|
||||
EXPECT_EQ("test", format("{0}", string_view("test")));
|
||||
EXPECT_EQ("test", format("{}", string_view("test")));
|
||||
EXPECT_EQ("", format("{}", string_view()));
|
||||
}
|
||||
|
||||
#ifdef FMT_USE_STD_STRING_VIEW
|
||||
|
||||
Reference in New Issue
Block a user