diff options
author | kartynnik <kartynnik@yandex-team.ru> | 2022-02-10 16:48:07 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:48:07 +0300 |
commit | df6128370874866447314ec18d8e67fc7bde40b4 (patch) | |
tree | b222e5ac2e2e98872661c51ccceee5da0d291e13 /util/stream | |
parent | ca2a705e6e39e85df30054d7e806e572de9cfe23 (diff) | |
download | ydb-df6128370874866447314ec18d8e67fc7bde40b4.tar.gz |
Restoring authorship annotation for <kartynnik@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/stream')
-rw-r--r-- | util/stream/labeled.h | 10 | ||||
-rw-r--r-- | util/stream/labeled_ut.cpp | 18 | ||||
-rw-r--r-- | util/stream/output.h | 4 |
3 files changed, 16 insertions, 16 deletions
diff --git a/util/stream/labeled.h b/util/stream/labeled.h index 103c2941df..2cc539d241 100644 --- a/util/stream/labeled.h +++ b/util/stream/labeled.h @@ -1,7 +1,7 @@ -#pragma once - -#include <util/generic/va_args.h> - +#pragma once + +#include <util/generic/va_args.h> + /** * Generates an output sequence for the provided expressions that is formatted * as a labeled comma-separated list. @@ -16,4 +16,4 @@ #define LabeledOutput(...) "" Y_PASS_VA_ARGS(Y_MAP_ARGS_WITH_LAST(__LABELED_OUTPUT_NONLAST__, __LABELED_OUTPUT_IMPL__, __VA_ARGS__)) #define __LABELED_OUTPUT_IMPL__(x) << #x " = " << (x) -#define __LABELED_OUTPUT_NONLAST__(x) __LABELED_OUTPUT_IMPL__(x) << ", " +#define __LABELED_OUTPUT_NONLAST__(x) __LABELED_OUTPUT_IMPL__(x) << ", " diff --git a/util/stream/labeled_ut.cpp b/util/stream/labeled_ut.cpp index a0f724bdca..12d0dc5004 100644 --- a/util/stream/labeled_ut.cpp +++ b/util/stream/labeled_ut.cpp @@ -1,12 +1,12 @@ -#include "str.h" - +#include "str.h" + #include <library/cpp/testing/unittest/registar.h> - + Y_UNIT_TEST_SUITE(TLabeledOutputTest) { Y_UNIT_TEST(TBasicTest) { - TStringStream out; - int x = 3; - out << LabeledOutput(x, 1, 2, 3 + 4); - UNIT_ASSERT_STRINGS_EQUAL(out.Str(), "x = 3, 1 = 1, 2 = 2, 3 + 4 = 7"); - } -} + TStringStream out; + int x = 3; + out << LabeledOutput(x, 1, 2, 3 + 4); + UNIT_ASSERT_STRINGS_EQUAL(out.Str(), "x = 3, 1 = 1, 2 = 2, 3 + 4 = 7"); + } +} diff --git a/util/stream/output.h b/util/stream/output.h index 7b377aa0de..00eef50b95 100644 --- a/util/stream/output.h +++ b/util/stream/output.h @@ -1,8 +1,8 @@ #pragma once #include "fwd.h" -#include "labeled.h" - +#include "labeled.h" + #include <util/generic/noncopyable.h> #include <util/generic/string.h> #include <util/generic/strbuf.h> |