aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/guid_ut.cpp
diff options
context:
space:
mode:
authorrureggaeton <rureggaeton@yandex-team.ru>2022-02-10 16:52:06 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:52:06 +0300
commit91bfae66f7b3d41b1f6b7beddec5d2d114ceb597 (patch)
treec9566e0c255b2db3b4669cf277a0baba9c660f74 /util/generic/guid_ut.cpp
parentc6c60f8a1120937fbf449f6d47c8df1595a5df66 (diff)
downloadydb-91bfae66f7b3d41b1f6b7beddec5d2d114ceb597.tar.gz
Restoring authorship annotation for <rureggaeton@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/generic/guid_ut.cpp')
-rw-r--r--util/generic/guid_ut.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/util/generic/guid_ut.cpp b/util/generic/guid_ut.cpp
index 048354ff39..0a9c2b6e08 100644
--- a/util/generic/guid_ut.cpp
+++ b/util/generic/guid_ut.cpp
@@ -47,7 +47,7 @@ Y_UNIT_TEST_SUITE(TGuidTest) {
{TGUID(), "1--1-1"},
{TGUID(), "1-1"}, // unexpected end
{TGUID(), "1-1-"},
- {TGUID(), "1-1-1"},
+ {TGUID(), "1-1-1"},
{TGUID(), "1-1-1-"},
{TGUID(), "1-1-1-1-"},
{TGUID(), "1-1-1-1-1"},
@@ -79,21 +79,21 @@ Y_UNIT_TEST_SUITE(TGuidTest) {
UNIT_ASSERT_VALUES_EQUAL(GetGuidAsString(Construct(1, 0xADE, 3, 4)), "1-ade-3-4");
UNIT_ASSERT_VALUES_EQUAL(GetGuidAsString(Construct(1, 2, 3, 0xDEAD)), "1-2-3-dead");
}
-
+
Y_UNIT_TEST(Test5) {
- const TTest tests[] = {
- {TGUID(), "1-1-1-1-1"},
+ const TTest tests[] = {
+ {TGUID(), "1-1-1-1-1"},
{TGUID(), "00000001-0001-0001-0001-00000000001-"},
- {Construct(0x10000001U, 0x10011001U, 0x10011001U, 0x10000001U), "10000001-1001-1001-1001-100110000001"},
- {Construct(0x550e8400U, 0xe29b41d4U, 0xa7164466U, 0x55440000U), "550e8400-e29b-41d4-a716-446655440000"},
- {Construct(0xffffffffU, 0xffffffffU, 0xffffffffU, 0xffffffffU), "ffffffff-ffff-ffff-ffff-ffffffffffff"},
- {TGUID(), "ffffffff-ffffff-ff-ffff-ffffffffffff"},
+ {Construct(0x10000001U, 0x10011001U, 0x10011001U, 0x10000001U), "10000001-1001-1001-1001-100110000001"},
+ {Construct(0x550e8400U, 0xe29b41d4U, 0xa7164466U, 0x55440000U), "550e8400-e29b-41d4-a716-446655440000"},
+ {Construct(0xffffffffU, 0xffffffffU, 0xffffffffU, 0xffffffffU), "ffffffff-ffff-ffff-ffff-ffffffffffff"},
+ {TGUID(), "ffffffff-ffffff-ff-ffff-ffffffffffff"},
{TGUID(), "ffffffff-ffff-ffff-ff-ffffffffffffff"}};
-
- for (const auto& t : tests) {
- UNIT_ASSERT_EQUAL(t.G, GetUuid(t.S));
- }
- }
+
+ for (const auto& t : tests) {
+ UNIT_ASSERT_EQUAL(t.G, GetUuid(t.S));
+ }
+ }
Y_UNIT_TEST(DoubleConvert) {
/**