diff options
author | ekrokhalev <ekrokhalev@yandex-team.ru> | 2022-02-10 16:50:10 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:10 +0300 |
commit | 8d3a5b9c70bfb823a30242286328d6017b82b9ce (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/cgiparam | |
parent | 1c01ed5294724fda060c1f0bd674b315fe249598 (diff) | |
download | ydb-8d3a5b9c70bfb823a30242286328d6017b82b9ce.tar.gz |
Restoring authorship annotation for <ekrokhalev@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/cgiparam')
-rw-r--r-- | library/cpp/cgiparam/cgiparam_ut.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/library/cpp/cgiparam/cgiparam_ut.cpp b/library/cpp/cgiparam/cgiparam_ut.cpp index 01edd0324c..a562342084 100644 --- a/library/cpp/cgiparam/cgiparam_ut.cpp +++ b/library/cpp/cgiparam/cgiparam_ut.cpp @@ -205,16 +205,16 @@ Y_UNIT_TEST_SUITE(TCgiParametersTest) { Y_UNIT_TEST(TestContInit) { TCgiParameters c = {std::make_pair("a", "a1"), std::make_pair("b", "b1"), std::make_pair("a", "a2")}; - - UNIT_ASSERT_VALUES_EQUAL(c.NumOfValues("a"), 2u); - UNIT_ASSERT_VALUES_EQUAL(c.NumOfValues("b"), 1u); - - UNIT_ASSERT_VALUES_EQUAL(c.Get("b"), "b1"); - UNIT_ASSERT_VALUES_EQUAL(c.Get("a", 0), "a1"); - UNIT_ASSERT_VALUES_EQUAL(c.Get("a", 1), "a2"); - - UNIT_ASSERT_VALUES_EQUAL(c.Print(), "a=a1&a=a2&b=b1"); - } + + UNIT_ASSERT_VALUES_EQUAL(c.NumOfValues("a"), 2u); + UNIT_ASSERT_VALUES_EQUAL(c.NumOfValues("b"), 1u); + + UNIT_ASSERT_VALUES_EQUAL(c.Get("b"), "b1"); + UNIT_ASSERT_VALUES_EQUAL(c.Get("a", 0), "a1"); + UNIT_ASSERT_VALUES_EQUAL(c.Get("a", 1), "a2"); + + UNIT_ASSERT_VALUES_EQUAL(c.Print(), "a=a1&a=a2&b=b1"); + } Y_UNIT_TEST(TestPrintAsQuote) { TCgiParameters c = { |