URL Parse fix

This commit is contained in:
Fred Nicolson
2018-10-25 10:41:21 +01:00
parent f26225946c
commit 5aecba03ef
4 changed files with 21 additions and 3 deletions
+8
View File
@@ -64,4 +64,12 @@ TEST(URLTest, uri_test4)
{
fr::URL url("http://example.com:80/?bob=10#frag");
ASSERT_EQ(url.get_uri(), "/?bob=10#frag");
}
TEST(URLTest, schema_parse_test)
{
fr::URL url("127.0.0.1:2020");
fr::URL url2;
url2.parse("127.0.0.1:2020");
ASSERT_EQ(url, url2);
}