4
* Testing Path.realpath()
6
* Returns the canonicalized absolute pathname or nil on error.
10
if (System.platform != "windows") {
11
assert(Path.delimiter == ":");
12
assert(Path.dirSeparator == "/");
13
assert(Path.realpath("/usr/../usr/../usr").unwrap() == "/usr");
14
assert(Path.realpath("doesnotexist/../../").success() == false);
15
assert(Path.realpath("doesnotexist/../../").unwrapError() == "No such file or directory");