Skip to content

Commit ec91e0a

Browse files
committed
Slowly moving to the optional<> exposed URI wrappers.
1 parent 30dac6f commit ec91e0a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libs/network/test/http_url_test.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,13 @@ BOOST_AUTO_TEST_CASE(http_url_test) {
2626
uri_type instance(string_type(boost::begin(url), boost::end(url)));
2727
BOOST_REQUIRE(uri::is_valid(instance));
2828
BOOST_CHECK_EQUAL(instance.raw(), url);
29+
boost::optional<string_type> host_ = uri::host(instance);
30+
boost::optional<boost::uint16_t> port_ = uri::port(instance);
31+
BOOST_CHECK( !port_ );
2932
string_type scheme_ = uri::scheme(instance);
3033
BOOST_CHECK_EQUAL(scheme_, scheme);
3134
BOOST_CHECK(boost::equal(uri::scheme(instance), scheme));
3235
BOOST_CHECK(boost::equal(uri::host(instance), host));
33-
BOOST_CHECK_EQUAL(uri::port(instance), port);
3436
BOOST_CHECK(boost::equal(uri::path(instance), path));
3537
}
3638

0 commit comments

Comments
 (0)