Fix bug in removeDotSegments: added test (#17050)
* Fix bug in removeDotSegments when path ends with dot * Add test for trailing period bug in uri
This commit is contained in:
parent
b187caeb87
commit
81703d4ad4
1 changed files with 1 additions and 0 deletions
|
|
@ -174,6 +174,7 @@ template main() =
|
||||||
block: # removeDotSegments
|
block: # removeDotSegments
|
||||||
doAssert removeDotSegments("/foo/bar/baz") == "/foo/bar/baz"
|
doAssert removeDotSegments("/foo/bar/baz") == "/foo/bar/baz"
|
||||||
doAssert removeDotSegments("") == "" # empty test
|
doAssert removeDotSegments("") == "" # empty test
|
||||||
|
doAssert removeDotSegments(".") == "." # trailing period
|
||||||
|
|
||||||
block: # bug #3207
|
block: # bug #3207
|
||||||
doAssert parseUri("http://qq/1").combine(parseUri("https://qqq")).`$` == "https://qqq"
|
doAssert parseUri("http://qq/1").combine(parseUri("https://qqq")).`$` == "https://qqq"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue