aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/uri/uri_ut.cpp
diff options
context:
space:
mode:
authorakhovrychev <akhovrychev@yandex-team.ru>2022-02-10 16:49:50 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:50 +0300
commit0142011d3740f27a2ace2224e6a5714abed48f4a (patch)
tree33d9054d7f83bec5a15a607d5f9059e6dd40e6e4 /library/cpp/uri/uri_ut.cpp
parentf4edb31a1d309efb6c243b2615a587cbbdec081d (diff)
downloadydb-0142011d3740f27a2ace2224e6a5714abed48f4a.tar.gz
Restoring authorship annotation for <akhovrychev@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/uri/uri_ut.cpp')
-rw-r--r--library/cpp/uri/uri_ut.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/library/cpp/uri/uri_ut.cpp b/library/cpp/uri/uri_ut.cpp
index 2ebd83fc93a..03e18705f85 100644
--- a/library/cpp/uri/uri_ut.cpp
+++ b/library/cpp/uri/uri_ut.cpp
@@ -884,21 +884,21 @@ namespace NUri {
URL_TEST(url, test);
}
}
- Y_UNIT_TEST(test_scheme_related_url) {
- TUri url;
- UNIT_ASSERT_VALUES_EQUAL(url.Parse("//www.hostname.ru/path", TFeature::FeaturesRobot), TState::ParsedOK);
- UNIT_ASSERT_EQUAL(url.GetScheme(), TScheme::SchemeEmpty);
- UNIT_ASSERT_VALUES_EQUAL(url.GetHost(), "www.hostname.ru");
- UNIT_ASSERT_VALUES_EQUAL(url.GetField(TField::FieldPath), "/path");
-
- TUri baseUrl;
- UNIT_ASSERT_VALUES_EQUAL(baseUrl.Parse("https://trololo.com", TFeature::FeaturesRobot), TState::ParsedOK);
- UNIT_ASSERT_EQUAL(baseUrl.GetScheme(), TScheme::SchemeHTTPS);
- url.Merge(baseUrl);
- UNIT_ASSERT_EQUAL(url.GetScheme(), TScheme::SchemeHTTPS);
- UNIT_ASSERT_VALUES_EQUAL(url.GetHost(), "www.hostname.ru");
- UNIT_ASSERT_VALUES_EQUAL(url.GetField(TField::FieldPath), "/path");
- }
+ Y_UNIT_TEST(test_scheme_related_url) {
+ TUri url;
+ UNIT_ASSERT_VALUES_EQUAL(url.Parse("//www.hostname.ru/path", TFeature::FeaturesRobot), TState::ParsedOK);
+ UNIT_ASSERT_EQUAL(url.GetScheme(), TScheme::SchemeEmpty);
+ UNIT_ASSERT_VALUES_EQUAL(url.GetHost(), "www.hostname.ru");
+ UNIT_ASSERT_VALUES_EQUAL(url.GetField(TField::FieldPath), "/path");
+
+ TUri baseUrl;
+ UNIT_ASSERT_VALUES_EQUAL(baseUrl.Parse("https://trololo.com", TFeature::FeaturesRobot), TState::ParsedOK);
+ UNIT_ASSERT_EQUAL(baseUrl.GetScheme(), TScheme::SchemeHTTPS);
+ url.Merge(baseUrl);
+ UNIT_ASSERT_EQUAL(url.GetScheme(), TScheme::SchemeHTTPS);
+ UNIT_ASSERT_VALUES_EQUAL(url.GetHost(), "www.hostname.ru");
+ UNIT_ASSERT_VALUES_EQUAL(url.GetField(TField::FieldPath), "/path");
+ }
}
Y_UNIT_TEST_SUITE(TInvertDomainTest) {