diff options
author | E. Westbrook <github@westbrook.io> | 2018-08-21 08:03:51 -0600 |
---|---|---|
committer | E. Westbrook <github@westbrook.io> | 2018-08-21 08:03:51 -0600 |
commit | c905b5d44f8cdfbc8110a9a7d1d62c08b5703ae3 (patch) | |
tree | 67ac58e327ef5abc97b2c5bb957193a84a7a5946 /test | |
parent | 17a95c126a178b17292637785c6ec09bb1180493 (diff) | |
download | luasocket-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.lua | 8 |
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") | |||
627 | check_absolute_url("http://a/b/c/d;p?q#f", "//g", "http://g") | 627 | check_absolute_url("http://a/b/c/d;p?q#f", "//g", "http://g") |
628 | check_absolute_url("http://a/b/c/d;p?q#f", "?y", "http://a/b/c/d;p?y") | 628 | check_absolute_url("http://a/b/c/d;p?q#f", "?y", "http://a/b/c/d;p?y") |
629 | check_absolute_url("http://a/b/c/d;p?q#f", "g?y", "http://a/b/c/g?y") | 629 | check_absolute_url("http://a/b/c/d;p?q#f", "g?y", "http://a/b/c/g?y") |
630 | check_absolute_url("http://a/b/c/d;p?q#f", "g?y/./x", "http://a/b/c/g?y/./x") | 630 | check_absolute_url("http://a/b/c/d;p?q#f", "g?y/./x", "http://a/b/c/g?y/x") |
631 | check_absolute_url("http://a/b/c/d;p?q#f", "#s", "http://a/b/c/d;p?q#s") | 631 | check_absolute_url("http://a/b/c/d;p?q#f", "#s", "http://a/b/c/d;p?q#s") |
632 | check_absolute_url("http://a/b/c/d;p?q#f", "g#s", "http://a/b/c/g#s") | 632 | check_absolute_url("http://a/b/c/d;p?q#f", "g#s", "http://a/b/c/g#s") |
633 | check_absolute_url("http://a/b/c/d;p?q#f", "g#s/./x", "http://a/b/c/g#s/./x") | 633 | check_absolute_url("http://a/b/c/d;p?q#f", "g#s/./x", "http://a/b/c/g#s/x") |
634 | check_absolute_url("http://a/b/c/d;p?q#f", "g?y#s", "http://a/b/c/g?y#s") | 634 | check_absolute_url("http://a/b/c/d;p?q#f", "g?y#s", "http://a/b/c/g?y#s") |
635 | check_absolute_url("http://a/b/c/d;p?q#f", ";x", "http://a/b/c/d;x") | 635 | check_absolute_url("http://a/b/c/d;p?q#f", ";x", "http://a/b/c/d;x") |
636 | check_absolute_url("http://a/b/c/d;p?q#f", "g;x", "http://a/b/c/g;x") | 636 | check_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/") | |||
655 | check_absolute_url("http://a/b/c/d;p?q#f", "../../", "http://a/") | 655 | check_absolute_url("http://a/b/c/d;p?q#f", "../../", "http://a/") |
656 | check_absolute_url("http://a/b/c/d;p?q#f", "../../g", "http://a/g") | 656 | check_absolute_url("http://a/b/c/d;p?q#f", "../../g", "http://a/g") |
657 | check_absolute_url("http://a/b/c/d;p?q#f", "", "http://a/b/c/d;p?q#f") | 657 | check_absolute_url("http://a/b/c/d;p?q#f", "", "http://a/b/c/d;p?q#f") |
658 | check_absolute_url("http://a/b/c/d;p?q#f", "/./g", "http://a/./g") | 658 | check_absolute_url("http://a/b/c/d;p?q#f", "/./g", "http://a/g") |
659 | check_absolute_url("http://a/b/c/d;p?q#f", "/../g", "http://a/../g") | 659 | check_absolute_url("http://a/b/c/d;p?q#f", "/../g", "http://a/g") |
660 | check_absolute_url("http://a/b/c/d;p?q#f", "g.", "http://a/b/c/g.") | 660 | check_absolute_url("http://a/b/c/d;p?q#f", "g.", "http://a/b/c/g.") |
661 | check_absolute_url("http://a/b/c/d;p?q#f", ".g", "http://a/b/c/.g") | 661 | check_absolute_url("http://a/b/c/d;p?q#f", ".g", "http://a/b/c/.g") |
662 | check_absolute_url("http://a/b/c/d;p?q#f", "g..", "http://a/b/c/g..") | 662 | check_absolute_url("http://a/b/c/d;p?q#f", "g..", "http://a/b/c/g..") |