2
0
mirror of https://github.com/boostorg/url.git synced 2026-02-20 03:02:14 +00:00

static_url operator<<

fix #320
This commit is contained in:
alandefreitas
2022-08-03 18:57:29 -03:00
committed by Vinnie Falco
parent 3d52de5a02
commit 51d0db2565
2 changed files with 44 additions and 0 deletions

View File

@@ -156,11 +156,25 @@ public:
BOOST_TEST_EQ(u.encoded_fragment(), "frag");
}
void
testOstream()
{
{
static_url<64> u = parse_uri(
"http://example.com/index.htm?q#f").value();
std::stringstream ss;
ss << u;
BOOST_TEST(ss.str() ==
"http://example.com/index.htm?q#f");
}
}
void
run()
{
testSpecial();
testParts();
testOstream();
}
};