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:
Benoit Favre
2021-02-16 20:20:37 +01:00
committed by GitHub
parent b187caeb87
commit 81703d4ad4

View File

@@ -174,6 +174,7 @@ template main() =
block: # removeDotSegments
doAssert removeDotSegments("/foo/bar/baz") == "/foo/bar/baz"
doAssert removeDotSegments("") == "" # empty test
doAssert removeDotSegments(".") == "." # trailing period
block: # bug #3207
doAssert parseUri("http://qq/1").combine(parseUri("https://qqq")).`$` == "https://qqq"