mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 22:07:36 +00:00
AK::URL: Fix setting the port number in the case it was the last element of the URL
This commit is contained in:
parent
2b8c7faee4
commit
dd198e1a29
2 changed files with 12 additions and 0 deletions
|
@ -207,4 +207,10 @@ TEST_CASE(trailing_slash_with_complete_url)
|
|||
EXPECT_EQ(URL("http://a/b").complete_url("c").to_string(), "http://a/c");
|
||||
}
|
||||
|
||||
TEST_CASE(trailing_port)
|
||||
{
|
||||
URL url("http://example.com:8086");
|
||||
EXPECT_EQ(url.port(), 8086);
|
||||
}
|
||||
|
||||
TEST_MAIN(URL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue