aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/unicode/punycode
diff options
context:
space:
mode:
authorsomov <somov@yandex-team.ru>2022-02-10 16:45:47 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:47 +0300
commita5950576e397b1909261050b8c7da16db58f10b1 (patch)
tree7ba7677f6a4c3e19e2cefab34d16df2c8963b4d4 /library/cpp/unicode/punycode
parent81eddc8c0b55990194e112b02d127b87d54164a9 (diff)
downloadydb-a5950576e397b1909261050b8c7da16db58f10b1.tar.gz
Restoring authorship annotation for <somov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/unicode/punycode')
-rw-r--r--library/cpp/unicode/punycode/punycode_ut.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/library/cpp/unicode/punycode/punycode_ut.cpp b/library/cpp/unicode/punycode/punycode_ut.cpp
index 97271cf0d8..6724d828c8 100644
--- a/library/cpp/unicode/punycode/punycode_ut.cpp
+++ b/library/cpp/unicode/punycode/punycode_ut.cpp
@@ -3,19 +3,19 @@
#include <library/cpp/testing/unittest/registar.h>
#include <util/charset/wide.h>
-namespace {
- template<typename T1, typename T2>
- inline bool HasSameBuffer(const T1& s1, const T2& s2) {
- return s1.begin() == s2.begin();
- }
-}
-
+namespace {
+ template<typename T1, typename T2>
+ inline bool HasSameBuffer(const T1& s1, const T2& s2) {
+ return s1.begin() == s2.begin();
+ }
+}
+
Y_UNIT_TEST_SUITE(TPunycodeTest) {
static bool TestRaw(const TString& utf8, const TString& punycode) {
TUtf16String unicode = UTF8ToWide(utf8);
TString buf1;
TUtf16String buf2;
- return HasSameBuffer(WideToPunycode(unicode, buf1), buf1) && buf1 == punycode && HasSameBuffer(PunycodeToWide(punycode, buf2), buf2) && buf2 == unicode && WideToPunycode(unicode) == punycode && PunycodeToWide(punycode) == unicode;
+ return HasSameBuffer(WideToPunycode(unicode, buf1), buf1) && buf1 == punycode && HasSameBuffer(PunycodeToWide(punycode, buf2), buf2) && buf2 == unicode && WideToPunycode(unicode) == punycode && PunycodeToWide(punycode) == unicode;
}
Y_UNIT_TEST(RawEncodeDecode) {