aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/uri/location_ut.cpp
diff options
context:
space:
mode:
authorstanly <stanly@yandex-team.ru>2022-02-10 16:46:49 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:49 +0300
commitcde218e65dfef5ce03a48d641fd8f7913cf17b2d (patch)
treed3349caea4095825a55b5ba24fe758067b29ce6f /library/cpp/uri/location_ut.cpp
parent9f813499b4ef585cb3c2bb93de93ef003daf4fc4 (diff)
downloadydb-cde218e65dfef5ce03a48d641fd8f7913cf17b2d.tar.gz
Restoring authorship annotation for <stanly@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/uri/location_ut.cpp')
-rw-r--r--library/cpp/uri/location_ut.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/library/cpp/uri/location_ut.cpp b/library/cpp/uri/location_ut.cpp
index 26a0f644711..58d1578a7dc 100644
--- a/library/cpp/uri/location_ut.cpp
+++ b/library/cpp/uri/location_ut.cpp
@@ -1,40 +1,40 @@
-#include "location.h"
-
+#include "location.h"
+
#include <library/cpp/testing/unittest/registar.h>
-
+
Y_UNIT_TEST_SUITE(TResolveRedirectTests) {
Y_UNIT_TEST(Absolute) {
- UNIT_ASSERT_EQUAL(
+ UNIT_ASSERT_EQUAL(
NUri::ResolveRedirectLocation("http://example.com", "http://redir-example.com/sub"), "http://redir-example.com/sub");
- }
+ }
Y_UNIT_TEST(AbsWithFragment) {
- UNIT_ASSERT_EQUAL(
+ UNIT_ASSERT_EQUAL(
NUri::ResolveRedirectLocation("http://example.com", "http://redir-example.com/sub#Hello"), "http://redir-example.com/sub#Hello");
- UNIT_ASSERT_EQUAL(
+ UNIT_ASSERT_EQUAL(
NUri::ResolveRedirectLocation("http://example.com/#Hello", "http://redir-example.com/sub"), "http://redir-example.com/sub#Hello");
- }
+ }
Y_UNIT_TEST(Rel) {
- UNIT_ASSERT_EQUAL(
+ UNIT_ASSERT_EQUAL(
NUri::ResolveRedirectLocation("http://example.com", "/sub"), "http://example.com/sub");
- }
+ }
Y_UNIT_TEST(RelWithFragment) {
- UNIT_ASSERT_EQUAL(
+ UNIT_ASSERT_EQUAL(
NUri::ResolveRedirectLocation("http://example.com", "/sub#Hello"), "http://example.com/sub#Hello");
- UNIT_ASSERT_EQUAL(
+ UNIT_ASSERT_EQUAL(
NUri::ResolveRedirectLocation("http://example.com/#Hello", "/sub"), "http://example.com/sub#Hello");
- }
+ }
Y_UNIT_TEST(WrongLocation) {
- UNIT_ASSERT_EQUAL(
+ UNIT_ASSERT_EQUAL(
NUri::ResolveRedirectLocation("http://example.com", ""), "");
- }
+ }
Y_UNIT_TEST(WrongBase) {
- UNIT_ASSERT_EQUAL(
+ UNIT_ASSERT_EQUAL(
NUri::ResolveRedirectLocation("", "http://example.com"), "");
- }
+ }
Y_UNIT_TEST(HashBangIsNothingSpecial) {
- UNIT_ASSERT_EQUAL(
+ UNIT_ASSERT_EQUAL(
NUri::ResolveRedirectLocation("http://example.com", "http://redir-example.com/sub#!Hello"), "http://redir-example.com/sub#!Hello");
- UNIT_ASSERT_EQUAL(
+ UNIT_ASSERT_EQUAL(
NUri::ResolveRedirectLocation("http://example.com/#!Hello", "http://redir-example.com/sub"), "http://redir-example.com/sub#!Hello");
- }
-}
+ }
+}