diff options
author | stanly <stanly@yandex-team.ru> | 2022-02-10 16:46:49 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:49 +0300 |
commit | 6170310e8721e225f64ddabf7a7358253d7a1249 (patch) | |
tree | 49e222ea1c5804306084bb3ae065bb702625360f /library/cpp/string_utils/quote/quote_ut.cpp | |
parent | cde218e65dfef5ce03a48d641fd8f7913cf17b2d (diff) | |
download | ydb-6170310e8721e225f64ddabf7a7358253d7a1249.tar.gz |
Restoring authorship annotation for <stanly@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/string_utils/quote/quote_ut.cpp')
-rw-r--r-- | library/cpp/string_utils/quote/quote_ut.cpp | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/library/cpp/string_utils/quote/quote_ut.cpp b/library/cpp/string_utils/quote/quote_ut.cpp index 5f6fb583a3..6c552b279e 100644 --- a/library/cpp/string_utils/quote/quote_ut.cpp +++ b/library/cpp/string_utils/quote/quote_ut.cpp @@ -178,25 +178,25 @@ Y_UNIT_TEST_SUITE(TCGIUnescapeTest) { } } -Y_UNIT_TEST_SUITE(TUrlEscapeTest) { - Y_UNIT_TEST(EscapeEscaped) { - TString s; - - s = "hello%3dworld"; +Y_UNIT_TEST_SUITE(TUrlEscapeTest) { + Y_UNIT_TEST(EscapeEscaped) { + TString s; + + s = "hello%3dworld"; UNIT_ASSERT_VALUES_EQUAL(UrlEscapeRet(s), "hello%3dworld"); - UrlEscape(s); - UNIT_ASSERT_VALUES_EQUAL(s, "hello%3dworld"); - } - - Y_UNIT_TEST(EscapeUnescape) { - TString s; - - s = "hello%3dworld"; - UrlEscape(s); - UrlUnescape(s); - UNIT_ASSERT_VALUES_EQUAL(s, "hello=world"); - } - + UrlEscape(s); + UNIT_ASSERT_VALUES_EQUAL(s, "hello%3dworld"); + } + + Y_UNIT_TEST(EscapeUnescape) { + TString s; + + s = "hello%3dworld"; + UrlEscape(s); + UrlUnescape(s); + UNIT_ASSERT_VALUES_EQUAL(s, "hello=world"); + } + Y_UNIT_TEST(EscapeUnescapeRet) { TString s; @@ -204,23 +204,23 @@ Y_UNIT_TEST_SUITE(TUrlEscapeTest) { UNIT_ASSERT_VALUES_EQUAL(UrlUnescapeRet(UrlEscapeRet(s)), "hello=world"); } - Y_UNIT_TEST(EscapeEscapedForce) { - TString s; - - s = "hello%3dworld"; + Y_UNIT_TEST(EscapeEscapedForce) { + TString s; + + s = "hello%3dworld"; UNIT_ASSERT_VALUES_EQUAL(UrlEscapeRet(s, true), "hello%253dworld"); - UrlEscape(s, true); - UNIT_ASSERT_VALUES_EQUAL(s, "hello%253dworld"); - } - - Y_UNIT_TEST(EscapeUnescapeForce) { - TString s; - - s = "hello%3dworld"; - UrlEscape(s, true); - UrlUnescape(s); - UNIT_ASSERT_VALUES_EQUAL(s, "hello%3dworld"); - } + UrlEscape(s, true); + UNIT_ASSERT_VALUES_EQUAL(s, "hello%253dworld"); + } + + Y_UNIT_TEST(EscapeUnescapeForce) { + TString s; + + s = "hello%3dworld"; + UrlEscape(s, true); + UrlUnescape(s); + UNIT_ASSERT_VALUES_EQUAL(s, "hello%3dworld"); + } Y_UNIT_TEST(EscapeUnescapeForceRet) { TString s; @@ -228,8 +228,8 @@ Y_UNIT_TEST_SUITE(TUrlEscapeTest) { s = "hello%3dworld"; UNIT_ASSERT_VALUES_EQUAL(UrlUnescapeRet(UrlEscapeRet(s, true)), "hello%3dworld"); } -} - +} + Y_UNIT_TEST_SUITE(TUrlUnescapeTest) { Y_UNIT_TEST(StrokaOutParameterInplace) { TString s; |