Skip to content

Commit 52e7797

Browse files
deanberrisglynos
authored andcommitted
Applied equality test.
1 parent 3b9d40f commit 52e7797

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::uri copy(assigned);
68+
BOOST_CHECK(copy == assigned);
69+
}
70+
6071
BOOST_AUTO_TEST_CASE(basic_uri_range_scheme_test) {
6172
uri::uri instance("http://www.example.com/");
6273
BOOST_REQUIRE(uri::valid(instance));

0 commit comments

Comments
 (0)