diff options
author | E. Westbrook <github@westbrook.io> | 2018-08-21 12:02:25 -0600 |
---|---|---|
committer | E. Westbrook <github@westbrook.io> | 2018-08-21 12:17:12 -0600 |
commit | ca5398be098b571912dcbd93c83ab78151814f99 (patch) | |
tree | 6355345432154e3ce550f7f133742653a5ed13c6 /test | |
parent | 38d936ec0ea05da9f85a5c582e5073e0d1b82209 (diff) | |
download | luasocket-ca5398be098b571912dcbd93c83ab78151814f99.tar.gz luasocket-ca5398be098b571912dcbd93c83ab78151814f99.tar.bz2 luasocket-ca5398be098b571912dcbd93c83ab78151814f99.zip |
url.lua:remove_dot_components(): use temporary NUL marker to reduce empty-segment special-case code
Diffstat (limited to 'test')
-rw-r--r-- | test/urltest.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/urltest.lua b/test/urltest.lua index 13deb10..ae8ba75 100644 --- a/test/urltest.lua +++ b/test/urltest.lua | |||
@@ -692,6 +692,10 @@ check_absolute_url("http://example.com/a/b/c/d/", "../../q", "http://example.com | |||
692 | check_absolute_url("http://example.com/a/b/c/d/", "../../../q", "http://example.com/a/q") | 692 | check_absolute_url("http://example.com/a/b/c/d/", "../../../q", "http://example.com/a/q") |
693 | check_absolute_url("http://example.com", ".badhost.com", "http://example.com/.badhost.com") | 693 | check_absolute_url("http://example.com", ".badhost.com", "http://example.com/.badhost.com") |
694 | check_absolute_url("http://example.com/a/b/c/d/", "..//../../../q", "http://example.com/a/q") | 694 | check_absolute_url("http://example.com/a/b/c/d/", "..//../../../q", "http://example.com/a/q") |
695 | check_absolute_url("http://example.com/a/b/c/d/", "..//a/../../../../q", "http://example.com/a/q") | ||
696 | check_absolute_url("http://example.com/a/b/c/d/", "..//a/..//../../../q", "http://example.com/a/b/q") | ||
697 | check_absolute_url("http://example.com/a/b/c/d/", "..//a/..///../../../../q", "http://example.com/a/b/q") | ||
698 | check_absolute_url("http://example.com/a/b/c/d/", "../x/a/../y/z/../../../../q", "http://example.com/a/b/q") | ||
695 | 699 | ||
696 | print("testing path parsing and composition") | 700 | print("testing path parsing and composition") |
697 | check_parse_path("/eu/tu/ele", { "eu", "tu", "ele"; is_absolute = 1 }) | 701 | check_parse_path("/eu/tu/ele", { "eu", "tu", "ele"; is_absolute = 1 }) |