aboutsummaryrefslogtreecommitdiffstats
path: root/util/stream/str_ut.cpp
diff options
context:
space:
mode:
authorAnton Samokhvalov <pg83@yandex.ru>2022-02-10 16:45:15 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:15 +0300
commit72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch)
treeda2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /util/stream/str_ut.cpp
parent778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff)
downloadydb-72cb13b4aff9bc9cf22e49251bc8fd143f82538f.tar.gz
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'util/stream/str_ut.cpp')
-rw-r--r--util/stream/str_ut.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/util/stream/str_ut.cpp b/util/stream/str_ut.cpp
index fc6b46c31a..76f1879c2c 100644
--- a/util/stream/str_ut.cpp
+++ b/util/stream/str_ut.cpp
@@ -52,16 +52,16 @@ Y_UNIT_TEST_SUITE(TStringInputOutputTest) {
TString string0 = "All animals are equal, but some animals are more equal than others.";
TString string1;
- for (size_t i = 1; i <= string0.size(); i++) {
+ for (size_t i = 1; i <= string0.size(); i++) {
string1 += string0.substr(0, i);
- }
+ }
TStringInput input0(string1);
size_t left = 5;
- while (left > 0) {
+ while (left > 0) {
left -= input0.Skip(left);
- }
+ }
TString string2 = input0.ReadAll();
@@ -116,17 +116,17 @@ Y_UNIT_TEST_SUITE(TStringInputOutputTest) {
Y_UNIT_TEST(Write) {
TString str;
TStringOutput output(str);
- output << "1"
- << "22"
- << "333"
- << "4444"
- << "55555";
-
- UNIT_ASSERT_STRINGS_EQUAL(str, "1"
- "22"
- "333"
- "4444"
- "55555");
+ output << "1"
+ << "22"
+ << "333"
+ << "4444"
+ << "55555";
+
+ UNIT_ASSERT_STRINGS_EQUAL(str, "1"
+ "22"
+ "333"
+ "4444"
+ "55555");
}
Y_UNIT_TEST(WriteChars) {