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

Commit52e7797

Browse files
deanberrisglynos
authored andcommitted
Applied equality test.
1 parent3b9d40f commit52e7797

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

‎libs/network/test/uri/url_test.cpp‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,17 @@ BOOST_AUTO_TEST_CASE(basic_uri_fragment_test) {
5757
BOOST_CHECK_EQUAL(uri::fragment(instance),"");
5858
}
5959

60+
BOOST_AUTO_TEST_CASE(basic_uri_value_semantics_test) {
61+
uri::uri original;
62+
uri::uri assigned;
63+
assigned = original;
64+
BOOST_CHECK(original == assigned);
65+
assigned ="http://www.example.com/";
66+
BOOST_CHECK(original != assigned);
67+
uri::uricopy(assigned);
68+
BOOST_CHECK(copy == assigned);
69+
}
70+
6071
BOOST_AUTO_TEST_CASE(basic_uri_range_scheme_test) {
6172
uri::uriinstance("http://www.example.com/");
6273
BOOST_REQUIRE(uri::valid(instance));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp