diff options
author | albert <[email protected]> | 2022-02-10 16:48:15 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:48:15 +0300 |
commit | a817f5de12611ec73085eba17f8ec7740a46bdb7 (patch) | |
tree | b222e5ac2e2e98872661c51ccceee5da0d291e13 /library/cpp/cgiparam/cgiparam_ut.cpp | |
parent | 9f25ef3232c288ca664ceee6c376cf64e4349a2e (diff) |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/cgiparam/cgiparam_ut.cpp')
-rw-r--r-- | library/cpp/cgiparam/cgiparam_ut.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/library/cpp/cgiparam/cgiparam_ut.cpp b/library/cpp/cgiparam/cgiparam_ut.cpp index 603dfd3eda1..a5623420840 100644 --- a/library/cpp/cgiparam/cgiparam_ut.cpp +++ b/library/cpp/cgiparam/cgiparam_ut.cpp @@ -60,7 +60,7 @@ Y_UNIT_TEST_SUITE(TCgiParametersTest) { TCgiParameters c; c.ScanAddAll("qw"); - UNIT_ASSERT_VALUES_EQUAL(c.size(), 1u); + UNIT_ASSERT_VALUES_EQUAL(c.size(), 1u); UNIT_ASSERT(c.Get("qw").empty()); } @@ -68,7 +68,7 @@ Y_UNIT_TEST_SUITE(TCgiParametersTest) { TCgiParameters c; c.ScanAddAll("qw&"); - UNIT_ASSERT_VALUES_EQUAL(c.size(), 1u); + UNIT_ASSERT_VALUES_EQUAL(c.size(), 1u); UNIT_ASSERT(c.Get("qw").empty()); } @@ -76,7 +76,7 @@ Y_UNIT_TEST_SUITE(TCgiParametersTest) { TCgiParameters c; c.ScanAddAll("qw=1&x"); - UNIT_ASSERT_VALUES_EQUAL(c.size(), 2u); + UNIT_ASSERT_VALUES_EQUAL(c.size(), 2u); UNIT_ASSERT_VALUES_EQUAL(c.Get("qw"), "1"); UNIT_ASSERT(c.Get("x").empty()); } @@ -182,7 +182,7 @@ Y_UNIT_TEST_SUITE(TCgiParametersTest) { TCgiParameters c; c.ScanAddAll("par=1&aaa=1&par=2&bbb&par=3"); - UNIT_ASSERT_VALUES_EQUAL(c.NumOfValues("par"), 3u); + UNIT_ASSERT_VALUES_EQUAL(c.NumOfValues("par"), 3u); } Y_UNIT_TEST(TestUnscape) { @@ -193,16 +193,16 @@ Y_UNIT_TEST_SUITE(TCgiParametersTest) { Y_UNIT_TEST(TestEmpty) { UNIT_ASSERT(TCgiParameters().Print().empty()); } - + Y_UNIT_TEST(TestJoinUnescaped) { - TCgiParameters c; - + TCgiParameters c; + c.Scan("foo=1&foo=2"); c.JoinUnescaped("foo", ';', "0"); - - UNIT_ASSERT_VALUES_EQUAL(c.Print(), "foo=1;2;0"); - } - + + UNIT_ASSERT_VALUES_EQUAL(c.Print(), "foo=1;2;0"); + } + Y_UNIT_TEST(TestContInit) { TCgiParameters c = {std::make_pair("a", "a1"), std::make_pair("b", "b1"), std::make_pair("a", "a2")}; |