diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-10-21 14:45:53 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-10-21 14:46:36 +0200 |
commit | b74a4338096024506b1b1a7fdd1acd6b35128eab (patch) | |
tree | a021868a950e0c2d5cd16e6f7e3de14c7e1248f7 /AK/Tests/TestURL.cpp | |
parent | 04b94a769521f7f8311463991be34572c9a37cac (diff) | |
download | serenity-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.cpp | 3 |
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) |