Skip to content

Commit 73935a6

Browse files
committed
Adding check for the scheme in the HTTP URL test.
1 parent 1ece316 commit 73935a6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libs/network/test/http_url_test.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ BOOST_AUTO_TEST_CASE(http_url_test) {
2525

2626
uri_type instance(string_type(boost::begin(url), boost::end(url)));
2727
BOOST_REQUIRE(uri::is_valid(instance));
28+
BOOST_CHECK_EQUAL(instance.raw(), url);
29+
string_type scheme_ = uri::scheme(instance);
30+
BOOST_CHECK_EQUAL(scheme_, scheme);
2831
BOOST_CHECK(boost::equal(uri::scheme(instance), scheme));
2932
BOOST_CHECK(boost::equal(uri::host(instance), host));
3033
BOOST_CHECK_EQUAL(uri::port(instance), port);

0 commit comments

Comments
 (0)