summaryrefslogtreecommitdiffstats
path: root/library/cpp/string_utils/url/url_ut.cpp
diff options
context:
space:
mode:
authorolegator <[email protected]>2022-02-10 16:49:55 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:49:55 +0300
commit553b4d1ea5e01ab98a8cfa8e3cfed79a0a93972d (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/string_utils/url/url_ut.cpp
parent971cfa1c440a14ae8352b1dbf29a884fea7536db (diff)
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/string_utils/url/url_ut.cpp')
-rw-r--r--library/cpp/string_utils/url/url_ut.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/library/cpp/string_utils/url/url_ut.cpp b/library/cpp/string_utils/url/url_ut.cpp
index d0971b1007d..15880138939 100644
--- a/library/cpp/string_utils/url/url_ut.cpp
+++ b/library/cpp/string_utils/url/url_ut.cpp
@@ -128,29 +128,29 @@ Y_UNIT_TEST_SUITE(TUtilUrlTest) {
}
Y_UNIT_TEST(TestSplitUrlToHostAndPath) {
- TStringBuf host, path;
-
- SplitUrlToHostAndPath("https://yandex.ru/yandsearch", host, path);
- UNIT_ASSERT_STRINGS_EQUAL(host, "https://yandex.ru");
- UNIT_ASSERT_STRINGS_EQUAL(path, "/yandsearch");
-
- SplitUrlToHostAndPath("yandex.ru/yandsearch", host, path);
- UNIT_ASSERT_STRINGS_EQUAL(host, "yandex.ru");
- UNIT_ASSERT_STRINGS_EQUAL(path, "/yandsearch");
-
- SplitUrlToHostAndPath("https://yandex.ru", host, path);
- UNIT_ASSERT_STRINGS_EQUAL(host, "https://yandex.ru");
- UNIT_ASSERT_STRINGS_EQUAL(path, "");
-
- SplitUrlToHostAndPath("invalid url /", host, path);
- UNIT_ASSERT_STRINGS_EQUAL(host, "invalid url ");
- UNIT_ASSERT_STRINGS_EQUAL(path, "/");
+ TStringBuf host, path;
+
+ SplitUrlToHostAndPath("https://yandex.ru/yandsearch", host, path);
+ UNIT_ASSERT_STRINGS_EQUAL(host, "https://yandex.ru");
+ UNIT_ASSERT_STRINGS_EQUAL(path, "/yandsearch");
+
+ SplitUrlToHostAndPath("yandex.ru/yandsearch", host, path);
+ UNIT_ASSERT_STRINGS_EQUAL(host, "yandex.ru");
+ UNIT_ASSERT_STRINGS_EQUAL(path, "/yandsearch");
+
+ SplitUrlToHostAndPath("https://yandex.ru", host, path);
+ UNIT_ASSERT_STRINGS_EQUAL(host, "https://yandex.ru");
+ UNIT_ASSERT_STRINGS_EQUAL(path, "");
+
+ SplitUrlToHostAndPath("invalid url /", host, path);
+ UNIT_ASSERT_STRINGS_EQUAL(host, "invalid url ");
+ UNIT_ASSERT_STRINGS_EQUAL(path, "/");
SplitUrlToHostAndPath("some_blender_url", host, path);
UNIT_ASSERT_STRINGS_EQUAL(host, "some_blender_url");
UNIT_ASSERT_STRINGS_EQUAL(path, "");
- }
-
+ }
+
Y_UNIT_TEST(TestSeparateUrlFromQueryAndFragment) {
TStringBuf sanitizedUrl, query, fragment;