1 assertEqual(PathType() ~ "hello", PathType("hello")); 2 assertEqual(PathType("") ~ "hello", PathType("hello")); 3 assertEqual(PathType(".") ~ "hello", PathType("hello")); 4 5 assertEqual(WindowsPath("/") ~ "hello", WindowsPath(`hello`)); 6 assertEqual(WindowsPath(`C:\`) ~ "hello" ~ "world", WindowsPath(`C:\hello\world`)); 7 assertEqual(WindowsPath("hello") ~ "..", WindowsPath(`hello\..`)); 8 assertEqual(WindowsPath("..") ~ "hello", WindowsPath(`..\hello`)); 9 10 assertEqual(PosixPath("/") ~ "hello", PosixPath("/hello")); 11 assertEqual(PosixPath("/") ~ "hello" ~ "world", PosixPath("/hello/world")); 12 assertEqual(PosixPath("hello") ~ "..", PosixPath("hello/..")); 13 assertEqual(PosixPath("..") ~ "hello", PosixPath("../hello"));
Concatenate the path other to this path.