aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/string/unittests
diff options
context:
space:
mode:
authorprime <prime@yandex-team.ru>2022-02-10 16:46:01 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:01 +0300
commite34f3f0e381020a427f44fbd50463d9a04089db3 (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/cpp/yt/string/unittests
parent3695a7cd42b74a4987d8d5a8f2e2443556998943 (diff)
downloadydb-e34f3f0e381020a427f44fbd50463d9a04089db3.tar.gz
Restoring authorship annotation for <prime@yandex-team.ru>. Commit 2 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 629f56ff1a..4b5eebea16 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