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:
Andreas Kling 2019-10-21 14:45:53 +02:00
commit b74a433809
Notes: sideshowbarker 2024-07-19 11:35:58 +09:00

View file

@ -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)