aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorE. Westbrook <github@westbrook.io>2018-08-21 08:03:51 -0600
committerE. Westbrook <github@westbrook.io>2018-08-21 08:03:51 -0600
commitc905b5d44f8cdfbc8110a9a7d1d62c08b5703ae3 (patch)
tree67ac58e327ef5abc97b2c5bb957193a84a7a5946 /test
parent17a95c126a178b17292637785c6ec09bb1180493 (diff)
downloadluasocket-c905b5d44f8cdfbc8110a9a7d1d62c08b5703ae3.tar.gz
luasocket-c905b5d44f8cdfbc8110a9a7d1d62c08b5703ae3.tar.bz2
luasocket-c905b5d44f8cdfbc8110a9a7d1d62c08b5703ae3.zip
url.lua: separate remove_dot_components() from absolute_path(); also use in _M.absolute() even when not merging
Diffstat (limited to 'test')
-rw-r--r--test/urltest.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/urltest.lua b/test/urltest.lua
index 63a33ea..649be88 100644
--- a/test/urltest.lua
+++ b/test/urltest.lua
@@ -627,10 +627,10 @@ check_absolute_url("http://a/b/c/d;p?q#f", "/g", "http://a/g")
627check_absolute_url("http://a/b/c/d;p?q#f", "//g", "http://g") 627check_absolute_url("http://a/b/c/d;p?q#f", "//g", "http://g")
628check_absolute_url("http://a/b/c/d;p?q#f", "?y", "http://a/b/c/d;p?y") 628check_absolute_url("http://a/b/c/d;p?q#f", "?y", "http://a/b/c/d;p?y")
629check_absolute_url("http://a/b/c/d;p?q#f", "g?y", "http://a/b/c/g?y") 629check_absolute_url("http://a/b/c/d;p?q#f", "g?y", "http://a/b/c/g?y")
630check_absolute_url("http://a/b/c/d;p?q#f", "g?y/./x", "http://a/b/c/g?y/./x") 630check_absolute_url("http://a/b/c/d;p?q#f", "g?y/./x", "http://a/b/c/g?y/x")
631check_absolute_url("http://a/b/c/d;p?q#f", "#s", "http://a/b/c/d;p?q#s") 631check_absolute_url("http://a/b/c/d;p?q#f", "#s", "http://a/b/c/d;p?q#s")
632check_absolute_url("http://a/b/c/d;p?q#f", "g#s", "http://a/b/c/g#s") 632check_absolute_url("http://a/b/c/d;p?q#f", "g#s", "http://a/b/c/g#s")
633check_absolute_url("http://a/b/c/d;p?q#f", "g#s/./x", "http://a/b/c/g#s/./x") 633check_absolute_url("http://a/b/c/d;p?q#f", "g#s/./x", "http://a/b/c/g#s/x")
634check_absolute_url("http://a/b/c/d;p?q#f", "g?y#s", "http://a/b/c/g?y#s") 634check_absolute_url("http://a/b/c/d;p?q#f", "g?y#s", "http://a/b/c/g?y#s")
635check_absolute_url("http://a/b/c/d;p?q#f", ";x", "http://a/b/c/d;x") 635check_absolute_url("http://a/b/c/d;p?q#f", ";x", "http://a/b/c/d;x")
636check_absolute_url("http://a/b/c/d;p?q#f", "g;x", "http://a/b/c/g;x") 636check_absolute_url("http://a/b/c/d;p?q#f", "g;x", "http://a/b/c/g;x")
@@ -655,8 +655,8 @@ check_absolute_url("http://a/b/c/d;p?q#f", "../..", "http://a/")
655check_absolute_url("http://a/b/c/d;p?q#f", "../../", "http://a/") 655check_absolute_url("http://a/b/c/d;p?q#f", "../../", "http://a/")
656check_absolute_url("http://a/b/c/d;p?q#f", "../../g", "http://a/g") 656check_absolute_url("http://a/b/c/d;p?q#f", "../../g", "http://a/g")
657check_absolute_url("http://a/b/c/d;p?q#f", "", "http://a/b/c/d;p?q#f") 657check_absolute_url("http://a/b/c/d;p?q#f", "", "http://a/b/c/d;p?q#f")
658check_absolute_url("http://a/b/c/d;p?q#f", "/./g", "http://a/./g") 658check_absolute_url("http://a/b/c/d;p?q#f", "/./g", "http://a/g")
659check_absolute_url("http://a/b/c/d;p?q#f", "/../g", "http://a/../g") 659check_absolute_url("http://a/b/c/d;p?q#f", "/../g", "http://a/g")
660check_absolute_url("http://a/b/c/d;p?q#f", "g.", "http://a/b/c/g.") 660check_absolute_url("http://a/b/c/d;p?q#f", "g.", "http://a/b/c/g.")
661check_absolute_url("http://a/b/c/d;p?q#f", ".g", "http://a/b/c/.g") 661check_absolute_url("http://a/b/c/d;p?q#f", ".g", "http://a/b/c/.g")
662check_absolute_url("http://a/b/c/d;p?q#f", "g..", "http://a/b/c/g..") 662check_absolute_url("http://a/b/c/d;p?q#f", "g..", "http://a/b/c/g..")