aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/string/unittests/format_ut.cpp
diff options
context:
space:
mode:
authorbulatman <bulatman@yandex-team.com>2025-01-10 01:27:33 +0300
committerbulatman <bulatman@yandex-team.com>2025-01-10 01:52:38 +0300
commitfab0037c69a3d2c1d81904e6174dcb4317ba02a2 (patch)
tree739af9c9206211c48fdabe6ef13feb1278f36a15 /library/cpp/yt/string/unittests/format_ut.cpp
parent667707fa06732f2943922d08ef77a2c9a52cbd47 (diff)
downloadydb-fab0037c69a3d2c1d81904e6174dcb4317ba02a2.tar.gz
YT: Removed extra trailing comma in std::tuple formatting
commit_hash:19b37bd3d7e3b4d80e4844676c881bbef1fec76b
Diffstat (limited to 'library/cpp/yt/string/unittests/format_ut.cpp')
-rw-r--r--library/cpp/yt/string/unittests/format_ut.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/library/cpp/yt/string/unittests/format_ut.cpp b/library/cpp/yt/string/unittests/format_ut.cpp
index 8aca8c8e29..e6b5eb7cfe 100644
--- a/library/cpp/yt/string/unittests/format_ut.cpp
+++ b/library/cpp/yt/string/unittests/format_ut.cpp
@@ -239,6 +239,13 @@ TEST(TFormatTest, Pointers)
}
}
+TEST(TFormatTest, Tuples)
+{
+ EXPECT_EQ("{}", Format("%v", std::tuple()));
+ EXPECT_EQ("{1, 2, 3}", Format("%v", std::tuple(1, 2, 3)));
+ EXPECT_EQ("{1, 2}", Format("%v", std::pair(1, 2)));
+}
+
TEST(TFormatTest, LazyMultiValueFormatter)
{
int i = 1;