mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-20 14:25:23 +00:00
committed by
Andreas Rumpf
parent
d7d17d5ab0
commit
25d3539da7
@@ -190,14 +190,17 @@ block walkDirRec:
|
||||
removeDir("walkdir_test")
|
||||
|
||||
block normalizedPath:
|
||||
doAssert normalizedPath("") == ""
|
||||
block relative:
|
||||
doAssert normalizedPath(".") == ""
|
||||
doAssert normalizedPath(".") == "."
|
||||
doAssert normalizedPath("foo/..") == "."
|
||||
doAssert normalizedPath("foo//../bar/.") == "bar"
|
||||
doAssert normalizedPath("..") == ".."
|
||||
doAssert normalizedPath("../") == ".."
|
||||
doAssert normalizedPath("../..") == unixToNativePath"../.."
|
||||
doAssert normalizedPath("../a/..") == ".."
|
||||
doAssert normalizedPath("../a/../") == ".."
|
||||
doAssert normalizedPath("./") == ""
|
||||
doAssert normalizedPath("./") == "."
|
||||
|
||||
block absolute:
|
||||
doAssert normalizedPath("/") == unixToNativePath"/"
|
||||
|
||||
Reference in New Issue
Block a user