Url#m_Query: test order preservation

refs #6536
This commit is contained in:
Alexander A. Klimov 2018-12-21 11:54:48 +01:00
parent eeb609d4ae
commit 268bd85752
1 changed files with 5 additions and 5 deletions

View File

@ -83,17 +83,17 @@ BOOST_AUTO_TEST_CASE(get_and_set)
BOOST_AUTO_TEST_CASE(parameters)
{
Url::Ptr url = new Url("https://icinga.com/hya/?rain=karl&rair=robert&foo[]=bar");
Url::Ptr url = new Url("https://icinga.com/hya/?rair=robert&rain=karl&foo[]=bar");
auto query (url->GetQuery());
BOOST_CHECK(query.size() == 3);
BOOST_CHECK(query[0].first == "rain");
BOOST_CHECK(query[0].second == "karl");
BOOST_CHECK(query[0].first == "rair");
BOOST_CHECK(query[0].second == "robert");
BOOST_CHECK(query[1].first == "rair");
BOOST_CHECK(query[1].second == "robert");
BOOST_CHECK(query[1].first == "rain");
BOOST_CHECK(query[1].second == "karl");
BOOST_CHECK(query[2].first == "foo");
BOOST_CHECK(query[2].second == "bar");