From b74a4338096024506b1b1a7fdd1acd6b35128eab Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 21 Oct 2019 14:45:53 +0200 Subject: 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. --- AK/Tests/TestURL.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'AK/Tests') diff --git a/AK/Tests/TestURL.cpp b/AK/Tests/TestURL.cpp index 5d3b0b33a8..d296c22e22 100644 --- a/AK/Tests/TestURL.cpp +++ b/AK/Tests/TestURL.cpp @@ -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) -- cgit v1.2.3