The path data using forward slashes, regardless of the current platform.
assertEqual(Path().posixData, "."); assertEqual(Path("").posixData, "."); assertEqual(Path("/hello/world").posixData, "/hello/world"); assertEqual(Path("/\\hello/\\/////world//").posixData, "/hello/world"); assertEqual(Path(`C:\`).posixData, "C:/"); assertEqual(Path(`C:\hello\`).posixData, "C:/hello"); assertEqual(Path(`C:\/\hello\`).posixData, "C:/hello"); assertEqual(Path(`C:\some windows\/path.exe.doodee`).posixData, "C:/some windows/path.exe.doodee"); assertEqual(Path(`C:\some windows\/path.exe.doodee\\\`).posixData, "C:/some windows/path.exe.doodee"); assertEqual(Path(`C:\some windows\/path.exe.doodee\\\`).posixData, Path(Path(`C:\some windows\/path.exe.doodee\\\`).posixData).data); assertEqual((Path(".") ~ "hello" ~ "./" ~ "world").posixData, "hello/world"); assertEqual(Path("hello/.").posixData, "hello"); assertEqual(Path("hello/././.").posixData, "hello"); assertEqual(Path("hello/././/.//").posixData, "hello");