aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/singleton_ut.cpp
diff options
context:
space:
mode:
authoryazevnul <yazevnul@yandex-team.ru>2022-02-10 16:46:46 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:46 +0300
commit8cbc307de0221f84c80c42dcbe07d40727537e2c (patch)
tree625d5a673015d1df891e051033e9fcde5c7be4e5 /util/generic/singleton_ut.cpp
parent30d1ef3941e0dc835be7609de5ebee66958f215a (diff)
downloadydb-8cbc307de0221f84c80c42dcbe07d40727537e2c.tar.gz
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/generic/singleton_ut.cpp')
-rw-r--r--util/generic/singleton_ut.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/generic/singleton_ut.cpp b/util/generic/singleton_ut.cpp
index 35ba90cd76..45a9852da3 100644
--- a/util/generic/singleton_ut.cpp
+++ b/util/generic/singleton_ut.cpp
@@ -2,13 +2,13 @@
#include <library/cpp/testing/unittest/registar.h>
-Y_UNIT_TEST_SUITE(TestSingleton) {
+Y_UNIT_TEST_SUITE(TestSingleton) {
struct THuge {
char Buf[1000000];
int V = 1234;
};
- Y_UNIT_TEST(TestHuge) {
+ Y_UNIT_TEST(TestHuge) {
UNIT_ASSERT_VALUES_EQUAL(*HugeSingleton<int>(), 0);
UNIT_ASSERT_VALUES_EQUAL(HugeSingleton<THuge>()->V, 1234);
}
@@ -24,13 +24,13 @@ Y_UNIT_TEST_SUITE(TestSingleton) {
TString Data2;
};
- Y_UNIT_TEST(TestConstructorParamsOrder) {
+ Y_UNIT_TEST(TestConstructorParamsOrder) {
UNIT_ASSERT_VALUES_EQUAL(Singleton<TWithParams>(10, "123123")->Data1, 10);
UNIT_ASSERT_VALUES_EQUAL(Singleton<TWithParams>(20, "123123")->Data1, 10);
UNIT_ASSERT_VALUES_EQUAL(Singleton<TWithParams>(10, "456456")->Data2, "123123");
}
- Y_UNIT_TEST(TestInstantiationWithConstructorParams) {
+ Y_UNIT_TEST(TestInstantiationWithConstructorParams) {
UNIT_ASSERT_VALUES_EQUAL(Singleton<TWithParams>(10)->Data1, 10);
UNIT_ASSERT_VALUES_EQUAL(HugeSingleton<TWithParams>(20, "123123")->Data2, "123123");
{