diff options
author | wsnk <[email protected]> | 2022-02-10 16:49:04 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:49:04 +0300 |
commit | 5e85b96f0cd76b3abbadf46ecb14f9cbec09de4c (patch) | |
tree | 5e16efe6d6d0e0425b8b6eb91262aa5f4b40b49c /library/cpp/cgiparam/cgiparam_ut.cpp | |
parent | 61d3fa4d96da1830f3082608375a77e450c5c9db (diff) |
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/cgiparam/cgiparam_ut.cpp')
-rw-r--r-- | library/cpp/cgiparam/cgiparam_ut.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/library/cpp/cgiparam/cgiparam_ut.cpp b/library/cpp/cgiparam/cgiparam_ut.cpp index a5623420840..7af4040a9ef 100644 --- a/library/cpp/cgiparam/cgiparam_ut.cpp +++ b/library/cpp/cgiparam/cgiparam_ut.cpp @@ -215,28 +215,28 @@ Y_UNIT_TEST_SUITE(TCgiParametersTest) { UNIT_ASSERT_VALUES_EQUAL(c.Print(), "a=a1&a=a2&b=b1"); } - - Y_UNIT_TEST(TestPrintAsQuote) { - TCgiParameters c = { + + Y_UNIT_TEST(TestPrintAsQuote) { + TCgiParameters c = { std::make_pair("aaa", "value/with/slashes"), - std::make_pair("b/b/b", "value_without_slashes"), + std::make_pair("b/b/b", "value_without_slashes"), std::make_pair("ccc", "value")}; - - UNIT_ASSERT_VALUES_EQUAL(c.Print(), "aaa=value/with/slashes&b/b/b=value_without_slashes&ccc=value"); - UNIT_ASSERT_VALUES_EQUAL(c.QuotedPrint(""), "aaa=value%2Fwith%2Fslashes&b%2Fb%2Fb=value_without_slashes&ccc=value"); - } - - Y_UNIT_TEST(TestPrintAsQuoteEmpty) { + + UNIT_ASSERT_VALUES_EQUAL(c.Print(), "aaa=value/with/slashes&b/b/b=value_without_slashes&ccc=value"); + UNIT_ASSERT_VALUES_EQUAL(c.QuotedPrint(""), "aaa=value%2Fwith%2Fslashes&b%2Fb%2Fb=value_without_slashes&ccc=value"); + } + + Y_UNIT_TEST(TestPrintAsQuoteEmpty) { TCgiParameters c = {}; - UNIT_ASSERT_VALUES_EQUAL(c.QuotedPrint(""), ""); - } - - Y_UNIT_TEST(TestPrintAsQuoteEmptyKeyOrValue) { - TCgiParameters c = { - std::make_pair("", "value/of/empty"), + UNIT_ASSERT_VALUES_EQUAL(c.QuotedPrint(""), ""); + } + + Y_UNIT_TEST(TestPrintAsQuoteEmptyKeyOrValue) { + TCgiParameters c = { + std::make_pair("", "value/of/empty"), std::make_pair("key/for/empty", "")}; - - UNIT_ASSERT_VALUES_EQUAL(c.Print(), "=value/of/empty&key/for/empty="); - UNIT_ASSERT_VALUES_EQUAL(c.QuotedPrint(""), "=value%2Fof%2Fempty&key%2Ffor%2Fempty="); - } + + UNIT_ASSERT_VALUES_EQUAL(c.Print(), "=value/of/empty&key/for/empty="); + UNIT_ASSERT_VALUES_EQUAL(c.QuotedPrint(""), "=value%2Fof%2Fempty&key%2Ffor%2Fempty="); + } } |