The test cases added in this commit are not very high value, since any `\` in what is supposed to be a component should be detected as invalid on Windows, which entails that these paths are detected as such. Adding these is mainly to clarify that the `\\?\` is not special here, comparedd to other kinds of `\` and `\\` paths.
Unified · Split
| @@ -266,7 +266,10 @@ mod component { · 265 unmodified lines | |||
| 266 | Error::WindowsPathPrefix, | 266 | Error::WindowsPathPrefix, |
| 267 | ALL_OPTS | 267 | ALL_OPTS |
| 268 | ); | 268 | ); |
| 269 | mktest!(unc_net_path, br"\\host", Error::PathSeparator, ALL_OPTS); | ||
| 269 | mktest!(unc_path, br"\\?\pictures", Error::PathSeparator, ALL_OPTS); | 270 | mktest!(unc_path, br"\\?\pictures", Error::PathSeparator, ALL_OPTS); |
| 271 | mktest!(unc_device_path, br"\\.\pictures", Error::PathSeparator, ALL_OPTS); | ||
| 272 | mktest!(unc_nt_obj_path, br"\??\pictures", Error::PathSeparator, ALL_OPTS); | ||
| 270 | 273 | ||
| 271 | #[test] | 274 | #[test] |
| 272 | fn ntfs_gitmodules() { | 275 | fn ntfs_gitmodules() { |