mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-19 07:21:19 +00:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user