aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/string/unittests
diff options
context:
space:
mode:
authorprime <prime@yandex-team.ru>2022-02-10 16:46:00 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:00 +0300
commit3695a7cd42b74a4987d8d5a8f2e2443556998943 (patch)
treeee79ee9294a61ee00e647684b3700d0a87e102a3 /library/cpp/yt/string/unittests
parent4d8b546b89b5afc08cf3667e176271c7ba935f33 (diff)
downloadydb-3695a7cd42b74a4987d8d5a8f2e2443556998943.tar.gz
Restoring authorship annotation for <prime@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/yt/string/unittests')
-rw-r--r--library/cpp/yt/string/unittests/guid_ut.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/library/cpp/yt/string/unittests/guid_ut.cpp b/library/cpp/yt/string/unittests/guid_ut.cpp
index 4b5eebea16..629f56ff1a 100644
--- a/library/cpp/yt/string/unittests/guid_ut.cpp
+++ b/library/cpp/yt/string/unittests/guid_ut.cpp
@@ -3,8 +3,8 @@
#include <library/cpp/yt/string/guid.h>
#include <library/cpp/yt/string/format.h>
-#include <util/string/hex.h>
-
+#include <util/string/hex.h>
+
namespace NYT {
namespace {
@@ -21,10 +21,10 @@ TString CanonicalToString(TGuid value)
value.Parts32[0]);
}
-const ui32 TrickyValues[] = {
- 0, 0x1, 0x12, 0x123, 0x1234, 0x12345, 0x123456, 0x1234567, 0x12345678
-};
-
+const ui32 TrickyValues[] = {
+ 0, 0x1, 0x12, 0x123, 0x1234, 0x12345, 0x123456, 0x1234567, 0x12345678
+};
+
TEST(TGuidTest, FormatAllTricky)
{
for (ui32 a : TrickyValues) {
@@ -44,14 +44,14 @@ TEST(TGuidTest, FormatAllSymbols)
const auto Value = TGuid::FromString("12345678-abcdef01-12345678-abcdef01");
EXPECT_EQ(CanonicalToString(Value), ToString(Value));
}
-
-TEST(TGuidTest, ByteOrder)
-{
- auto guid = TGuid::FromStringHex32("12345678ABCDEF0112345678ABCDEF01");
- TString bytes{reinterpret_cast<const char*>(&(guid.Parts32[0])), 16};
- EXPECT_EQ(HexEncode(bytes), "01EFCDAB7856341201EFCDAB78563412");
-}
-
+
+TEST(TGuidTest, ByteOrder)
+{
+ auto guid = TGuid::FromStringHex32("12345678ABCDEF0112345678ABCDEF01");
+ TString bytes{reinterpret_cast<const char*>(&(guid.Parts32[0])), 16};
+ EXPECT_EQ(HexEncode(bytes), "01EFCDAB7856341201EFCDAB78563412");
+}
+
////////////////////////////////////////////////////////////////////////////////
} // namespace