mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:57:44 +00:00
URL: Unbreak the serialization test
http:// URLs no longer include ":80" when serialized, since port 80 is implied by the protocol. Non-standard ports are still serialized.
This commit is contained in:
parent
04b94a7695
commit
b74a433809
1 changed files with 2 additions and 1 deletions
|
@ -43,7 +43,8 @@ TEST_CASE(some_bad_urls)
|
|||
|
||||
TEST_CASE(serialization)
|
||||
{
|
||||
EXPECT_EQ(URL("http://www.serenityos.org/").to_string(), "http://www.serenityos.org:80/");
|
||||
EXPECT_EQ(URL("http://www.serenityos.org/").to_string(), "http://www.serenityos.org/");
|
||||
EXPECT_EQ(URL("http://www.serenityos.org:81/").to_string(), "http://www.serenityos.org:81/");
|
||||
}
|
||||
|
||||
TEST_MAIN(URL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue