diff options
author | arkady-e1ppa <arkady-e1ppa@yandex-team.com> | 2024-11-18 14:48:05 +0300 |
---|---|---|
committer | arkady-e1ppa <arkady-e1ppa@yandex-team.com> | 2024-11-18 15:04:54 +0300 |
commit | 9e876c7c66440327e3bba353d37e99d68eabb0b9 (patch) | |
tree | b7daabaa3386ab7b1a783fad91da2f014f9354e7 /library/cpp/yt/string/unittests/format_ut.cpp | |
parent | 13bff9a72fbc1bd6a2643251982afcc3b4a7e93a (diff) | |
download | ydb-9e876c7c66440327e3bba353d37e99d68eabb0b9.tar.gz |
YT-23435: Parse format string at compile time
commit_hash:804530d1ee861ff42d7d8cad25d9f569b4feaacf
Diffstat (limited to 'library/cpp/yt/string/unittests/format_ut.cpp')
-rw-r--r-- | library/cpp/yt/string/unittests/format_ut.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/library/cpp/yt/string/unittests/format_ut.cpp b/library/cpp/yt/string/unittests/format_ut.cpp index ac3be99ad9..8aca8c8e29 100644 --- a/library/cpp/yt/string/unittests/format_ut.cpp +++ b/library/cpp/yt/string/unittests/format_ut.cpp @@ -326,6 +326,11 @@ TEST(TFormatTest, CustomFlagsCollectionTwoLevels) EXPECT_EQ(Format("%NRv", arr), toCollectionD2("RNP")); } +TEST(TFormatTest, ManyEscapes) +{ + EXPECT_EQ("a%b%c%d%e%f%g", Format("%v%%%v%%%v%%%v%%%v%%%v%%%g", "a", "b", "c", "d", "e", "f", "g")); +} + //////////////////////////////////////////////////////////////////////////////// } // namespace |