diff options
author | abolkhovityanov <abolkhovityanov@yandex-team.ru> | 2022-02-10 16:50:49 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:49 +0300 |
commit | 812751ae6997d4a9efaca424ef7b2e1d06fa3771 (patch) | |
tree | 3bdff9442b38b433a98640c47522ba7c66bed0d1 /library/cpp/tld/tld_ut.cpp | |
parent | 90e989b502f29f2d1176402f08e85953ae199004 (diff) | |
download | ydb-812751ae6997d4a9efaca424ef7b2e1d06fa3771.tar.gz |
Restoring authorship annotation for <abolkhovityanov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/tld/tld_ut.cpp')
-rw-r--r-- | library/cpp/tld/tld_ut.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/library/cpp/tld/tld_ut.cpp b/library/cpp/tld/tld_ut.cpp index 733200f2b5..1c24020a88 100644 --- a/library/cpp/tld/tld_ut.cpp +++ b/library/cpp/tld/tld_ut.cpp @@ -1,11 +1,11 @@ -#include "tld.h" - +#include "tld.h" + #include <library/cpp/testing/unittest/registar.h> - + #include <library/cpp/charset/doccodes.h> - -using namespace NTld; - + +using namespace NTld; + Y_UNIT_TEST_SUITE(TTldTest) { Y_UNIT_TEST(TestFindTld) { UNIT_ASSERT(FindTld("yandex.ru") == "ru"); @@ -23,19 +23,19 @@ Y_UNIT_TEST_SUITE(TTldTest) { } Y_UNIT_TEST(TestTLDs) { - UNIT_ASSERT(IsTld("ru")); - UNIT_ASSERT(IsTld("Ru")); - UNIT_ASSERT(IsTld("BMW")); - UNIT_ASSERT(IsTld("TiReS")); - UNIT_ASSERT(IsTld("xn--p1ai")); - UNIT_ASSERT(IsTld("YaHOO")); - UNIT_ASSERT(!IsTld("xn")); - - UNIT_ASSERT(InTld("ru.ru")); - UNIT_ASSERT(!InTld("ru")); - UNIT_ASSERT(!InTld("ru.")); - UNIT_ASSERT(!InTld("ru.xn")); - } + UNIT_ASSERT(IsTld("ru")); + UNIT_ASSERT(IsTld("Ru")); + UNIT_ASSERT(IsTld("BMW")); + UNIT_ASSERT(IsTld("TiReS")); + UNIT_ASSERT(IsTld("xn--p1ai")); + UNIT_ASSERT(IsTld("YaHOO")); + UNIT_ASSERT(!IsTld("xn")); + + UNIT_ASSERT(InTld("ru.ru")); + UNIT_ASSERT(!InTld("ru")); + UNIT_ASSERT(!InTld("ru.")); + UNIT_ASSERT(!InTld("ru.xn")); + } Y_UNIT_TEST(TestVeryGoodTlds) { UNIT_ASSERT(IsVeryGoodTld("ru")); @@ -56,4 +56,4 @@ Y_UNIT_TEST_SUITE(TTldTest) { UNIT_ASSERT(!InVeryGoodTld("ru.")); UNIT_ASSERT(!InVeryGoodTld("ru.xn")); } -} +} |