From 87071200872c2450c947047350132aee493033c1 Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Thu, 2 Jan 2025 15:11:51 -0600 Subject: Get basic CSV parser operating. --- test/test_format.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test/test_format.cpp') diff --git a/test/test_format.cpp b/test/test_format.cpp index b9d373c..738b551 100644 --- a/test/test_format.cpp +++ b/test/test_format.cpp @@ -709,4 +709,13 @@ TEST(FormatTest, TwoArgFormatTest) EXPECT_STREQ(sink.c_str(), expected.c_str()); } +TEST(FormatTest, StringView) +{ + String sink{}; + auto expected = std::format("Test {}", std::string_view{"Hello, World!"}); + auto formatResult = format(sink, FormatCharMode::Unchecked, u8"Test {}", StringView{u8"Hello, World!"}); + EXPECT_TRUE(formatResult.isOkay()); + EXPECT_STREQ(sink.c_str(), expected.c_str()); +} + } // namespace fud -- cgit v1.2.3