aboutsummaryrefslogtreecommitdiffstats
path: root/util/stream/format_ut.cpp
diff options
context:
space:
mode:
authornga <nga@yandex-team.ru>2022-02-10 16:48:09 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:09 +0300
commit1f553f46fb4f3c5eec631352cdd900a0709016af (patch)
treea231fba2c03b440becaea6c86a2702d0bfb0336e /util/stream/format_ut.cpp
parentc4de7efdedc25b49cbea74bd589eecb61b55b60a (diff)
downloadydb-1f553f46fb4f3c5eec631352cdd900a0709016af.tar.gz
Restoring authorship annotation for <nga@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/stream/format_ut.cpp')
-rw-r--r--util/stream/format_ut.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/util/stream/format_ut.cpp b/util/stream/format_ut.cpp
index 43245aeb48..2e50f0f9c5 100644
--- a/util/stream/format_ut.cpp
+++ b/util/stream/format_ut.cpp
@@ -2,28 +2,28 @@
#include <library/cpp/testing/unittest/registar.h>
#include <util/charset/wide.h>
-
+
Y_UNIT_TEST_SUITE(TOutputStreamFormattingTest) {
Y_UNIT_TEST(TestLeftPad) {
- TStringStream ss;
- ss << LeftPad(10, 4, '0');
- UNIT_ASSERT_VALUES_EQUAL("0010", ss.Str());
-
+ TStringStream ss;
+ ss << LeftPad(10, 4, '0');
+ UNIT_ASSERT_VALUES_EQUAL("0010", ss.Str());
+
ss.Clear();
- ss << LeftPad(222, 1);
- UNIT_ASSERT_VALUES_EQUAL("222", ss.Str());
- }
-
+ ss << LeftPad(222, 1);
+ UNIT_ASSERT_VALUES_EQUAL("222", ss.Str());
+ }
+
Y_UNIT_TEST(TestRightPad) {
- TStringStream ss;
- ss << RightPad("aa", 4);
- UNIT_ASSERT_VALUES_EQUAL("aa ", ss.Str());
-
+ TStringStream ss;
+ ss << RightPad("aa", 4);
+ UNIT_ASSERT_VALUES_EQUAL("aa ", ss.Str());
+
ss.Clear();
- ss << RightPad("aa", 1);
- UNIT_ASSERT_VALUES_EQUAL("aa", ss.Str());
- }
-
+ ss << RightPad("aa", 1);
+ UNIT_ASSERT_VALUES_EQUAL("aa", ss.Str());
+ }
+
Y_UNIT_TEST(TestTime) {
TStringStream ss;
@@ -179,4 +179,4 @@ Y_UNIT_TEST_SUITE(TOutputStreamFormattingTest) {
UNIT_ASSERT_VALUES_EQUAL(ToString(HumanReadable(TDuration::Seconds(3672))), "1h 1m 12s");
UNIT_ASSERT_VALUES_EQUAL(ToString(HumanReadable(TDuration::Seconds(4220))), "1h 10m 20s");
}
-}
+}