summaryrefslogtreecommitdiff
path: root/AK/Tests/TestURL.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-10-21 14:45:53 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-10-21 14:46:36 +0200
commitb74a4338096024506b1b1a7fdd1acd6b35128eab (patch)
treea021868a950e0c2d5cd16e6f7e3de14c7e1248f7 /AK/Tests/TestURL.cpp
parent04b94a769521f7f8311463991be34572c9a37cac (diff)
downloadserenity-b74a4338096024506b1b1a7fdd1acd6b35128eab.zip
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.
Diffstat (limited to 'AK/Tests/TestURL.cpp')
-rw-r--r--AK/Tests/TestURL.cpp3
1 files changed, 2 insertions, 1 deletions
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)