Skip to content

Commit

Permalink
Applied equality test.
Browse files Browse the repository at this point in the history
  • Loading branch information
deanberris authored and glynos committed Mar 14, 2012
1 parent 3b9d40f commit 52e7797
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions libs/network/test/uri/url_test.cpp
Expand Up @@ -57,6 +57,17 @@ BOOST_AUTO_TEST_CASE(basic_uri_fragment_test) {
BOOST_CHECK_EQUAL(uri::fragment(instance), "");
}

BOOST_AUTO_TEST_CASE(basic_uri_value_semantics_test) {
uri::uri original;
uri::uri assigned;
assigned = original;
BOOST_CHECK(original == assigned);
assigned = "http://www.example.com/";
BOOST_CHECK(original != assigned);
uri::uri copy(assigned);
BOOST_CHECK(copy == assigned);
}

BOOST_AUTO_TEST_CASE(basic_uri_range_scheme_test) {
uri::uri instance("http://www.example.com/");
BOOST_REQUIRE(uri::valid(instance));
Expand Down

0 comments on commit 52e7797

Please sign in to comment.