The path data using backward slashes, regardless of the current platform.
1 assertEqual(WindowsPath().windowsData, `.`); 2 assertEqual(WindowsPath(``).windowsData, `.`); 3 assertEqual(WindowsPath(`.`).windowsData, `.`); 4 assertEqual(WindowsPath(`..`).windowsData, `..`); 5 assertEqual(WindowsPath(`C:\foo\bar.exe`).windowsData, `C:\foo\bar.exe`); 6 assertEqual(WindowsPath(`C:\foo\bar\`).windowsData, `C:\foo\bar`); 7 assertEqual(WindowsPath(`C:\./foo\.\\.\\\bar\`).windowsData, `C:\foo\bar`); 8 assertEqual(WindowsPath(`C:\./foo\..\\.\\\bar\//baz.exe`).windowsData, `C:\foo\..\bar\baz.exe`); 9 10 assertEqual(PosixPath().windowsData, `.`); 11 assertEqual(PosixPath(``).windowsData, `.`); 12 assertEqual(PosixPath(`.`).windowsData, `.`); 13 assertEqual(PosixPath(`..`).windowsData, `..`); 14 assertEqual(PosixPath(`/foo/bar.txt`).windowsData, `foo\bar.txt`); 15 assertEqual(PosixPath(`/foo/bar\`).windowsData, `foo\bar`); 16 assertEqual(PosixPath(`/foo/bar\`).windowsData, `foo\bar`); 17 assertEqual(PosixPath(`/./\\foo/\/.\..\bar/./baz.txt`).windowsData, `foo\..\bar\baz.txt`);