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
commitc2a1af049e9deca890e9923abe64fe6c59060348 (patch)
treeb222e5ac2e2e98872661c51ccceee5da0d291e13 /util/stream/format_ut.cpp
parent1f553f46fb4f3c5eec631352cdd900a0709016af (diff)
downloadydb-c2a1af049e9deca890e9923abe64fe6c59060348.tar.gz
Restoring authorship annotation for <nga@yandex-team.ru>. Commit 2 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 2e50f0f9c5..43245aeb48 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");
}
-}
+}