aboutsummaryrefslogtreecommitdiffstats
path: root/util/string/printf_ut.cpp
diff options
context:
space:
mode:
authorVlad Yaroslavlev <vladon@vladon.com>2022-02-10 16:46:23 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:23 +0300
commit706b83ed7de5a473436620367af31fc0ceecde07 (patch)
tree103305d30dec77e8f6367753367f59b3cd68f9f1 /util/string/printf_ut.cpp
parent918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff)
downloadydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'util/string/printf_ut.cpp')
-rw-r--r--util/string/printf_ut.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/util/string/printf_ut.cpp b/util/string/printf_ut.cpp
index 2b2f980b70..49f02b3da1 100644
--- a/util/string/printf_ut.cpp
+++ b/util/string/printf_ut.cpp
@@ -4,19 +4,19 @@
Y_UNIT_TEST_SUITE(TStringPrintf) {
Y_UNIT_TEST(TestSprintf) {
- TString s;
+ TString s;
int len = sprintf(s, "Hello %s", "world");
- UNIT_ASSERT_EQUAL(s, TString("Hello world"));
+ UNIT_ASSERT_EQUAL(s, TString("Hello world"));
UNIT_ASSERT_EQUAL(len, 11);
}
Y_UNIT_TEST(TestFcat) {
- TString s;
+ TString s;
int len = sprintf(s, "Hello %s", "world");
- UNIT_ASSERT_EQUAL(s, TString("Hello world"));
+ UNIT_ASSERT_EQUAL(s, TString("Hello world"));
UNIT_ASSERT_EQUAL(len, 11);
len = fcat(s, " qwqw%s", "as");
- UNIT_ASSERT_EQUAL(s, TString("Hello world qwqwas"));
+ UNIT_ASSERT_EQUAL(s, TString("Hello world qwqwas"));
UNIT_ASSERT_EQUAL(len, 7);
}