aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authormstebelev <mstebelev@yandex-team.ru>2022-02-10 16:47:17 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:17 +0300
commit5a176099114d03d5669e95a55a3a514bd24dd8b1 (patch)
tree13d2cd27a59ccff4e44d7c7f530f923483f82267 /util
parent3c1fe03778c21d7aa4a5c4a4433ca611dbf2f785 (diff)
downloadydb-5a176099114d03d5669e95a55a3a514bd24dd8b1.tar.gz
Restoring authorship annotation for <mstebelev@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util')
-rw-r--r--util/digest/multi_ut.cpp20
-rw-r--r--util/generic/maybe.cpp10
-rw-r--r--util/generic/maybe_ut.cpp12
-rw-r--r--util/generic/string_ut.pyx8
4 files changed, 25 insertions, 25 deletions
diff --git a/util/digest/multi_ut.cpp b/util/digest/multi_ut.cpp
index dff64ff0cc..3b16e92028 100644
--- a/util/digest/multi_ut.cpp
+++ b/util/digest/multi_ut.cpp
@@ -9,7 +9,7 @@ class TMultiHashTest: public TTestBase {
UNIT_TEST(TestStrInt)
UNIT_TEST(TestIntStr)
UNIT_TEST(TestSimpleCollision)
- UNIT_TEST(TestTypes)
+ UNIT_TEST(TestTypes)
UNIT_TEST_SUITE_END();
private:
@@ -24,15 +24,15 @@ private:
inline void TestSimpleCollision() {
UNIT_ASSERT_UNEQUAL(MultiHash(1, 1, 0), MultiHash(2, 2, 0));
}
-
- inline void TestTypes() {
- UNIT_ASSERT_EQUAL(MultiHash("aaa", (ui64)123), MultiHash("aaa", 123));
- UNIT_ASSERT_EQUAL(MultiHash("aaa", (i64)123), MultiHash("aaa", 123));
- UNIT_ASSERT_EQUAL(MultiHash("aaa", (i32)123), MultiHash("aaa", 123));
- UNIT_ASSERT_EQUAL(MultiHash("aaa", (ui32)123), MultiHash("aaa", 123));
- UNIT_ASSERT_EQUAL(MultiHash("aaa", (i64)-123), MultiHash("aaa", -123));
- UNIT_ASSERT_EQUAL(MultiHash("aaa", (i32)-123), MultiHash("aaa", -123));
- }
+
+ inline void TestTypes() {
+ UNIT_ASSERT_EQUAL(MultiHash("aaa", (ui64)123), MultiHash("aaa", 123));
+ UNIT_ASSERT_EQUAL(MultiHash("aaa", (i64)123), MultiHash("aaa", 123));
+ UNIT_ASSERT_EQUAL(MultiHash("aaa", (i32)123), MultiHash("aaa", 123));
+ UNIT_ASSERT_EQUAL(MultiHash("aaa", (ui32)123), MultiHash("aaa", 123));
+ UNIT_ASSERT_EQUAL(MultiHash("aaa", (i64)-123), MultiHash("aaa", -123));
+ UNIT_ASSERT_EQUAL(MultiHash("aaa", (i32)-123), MultiHash("aaa", -123));
+ }
};
UNIT_TEST_SUITE_REGISTRATION(TMultiHashTest);
diff --git a/util/generic/maybe.cpp b/util/generic/maybe.cpp
index 43262934f8..b4c5cd119f 100644
--- a/util/generic/maybe.cpp
+++ b/util/generic/maybe.cpp
@@ -1,6 +1,6 @@
#include "maybe.h"
#include <util/system/type_name.h>
-
+
[[noreturn]] void NMaybe::TPolicyUndefinedExcept::OnEmpty(const std::type_info& valueTypeInfo) {
ythrow yexception() << "TMaybe is empty, value type: "sv << TypeName(valueTypeInfo);
}
@@ -10,7 +10,7 @@
Y_FAIL("TMaybe is empty, value type: %s", typeName.c_str());
}
-template <>
-void Out<TNothing>(IOutputStream& o, const TNothing&) {
- o << "(empty maybe)";
-}
+template <>
+void Out<TNothing>(IOutputStream& o, const TNothing&) {
+ o << "(empty maybe)";
+}
diff --git a/util/generic/maybe_ut.cpp b/util/generic/maybe_ut.cpp
index 2c1a425c5e..173e174603 100644
--- a/util/generic/maybe_ut.cpp
+++ b/util/generic/maybe_ut.cpp
@@ -796,12 +796,12 @@ Y_UNIT_TEST_SUITE(TMaybeTest) {
}
Y_UNIT_TEST(TestOutputStreamNothing) {
- TString s;
- TStringOutput output(s);
- output << Nothing();
- UNIT_ASSERT_VALUES_EQUAL("(empty maybe)", s);
- }
-
+ TString s;
+ TStringOutput output(s);
+ output << Nothing();
+ UNIT_ASSERT_VALUES_EQUAL("(empty maybe)", s);
+ }
+
Y_UNIT_TEST(TestOutputStreamDefinedMaybe) {
TString s;
TStringOutput output(s);
diff --git a/util/generic/string_ut.pyx b/util/generic/string_ut.pyx
index 5407f5b4c1..8791f9bc83 100644
--- a/util/generic/string_ut.pyx
+++ b/util/generic/string_ut.pyx
@@ -10,11 +10,11 @@ import sys
class TestStroka(unittest.TestCase):
- def test_unicode(self):
- cdef TString x = "привет"
- self.assertEquals(x, "привет")
-
+ def test_unicode(self):
+ cdef TString x = "привет"
+ self.assertEquals(x, "привет")
+
def test_ctor1(self):
cdef TString tmp = TString()
cdef TString tmp2 = TString(tmp)