Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitec91e0a

Browse files
committed
Slowly moving to the optional<> exposed URI wrappers.
1 parent30dac6f commitec91e0a

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_typeinstance(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)

[8]ページ先頭

©2009-2025 Movatter.jp