diff options
| author | abolkhovityanov <[email protected]> | 2022-02-10 16:50:49 +0300 | 
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:50:49 +0300 | 
| commit | 19ffdf9058e1d3256bb9ed882514581b7d4df261 (patch) | |
| tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/tld/tld_ut.cpp | |
| parent | 812751ae6997d4a9efaca424ef7b2e1d06fa3771 (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 2 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 1c24020a882..733200f2b55 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"));      } -}  +} | 
