Commit adc2200
authored
SwiftDocCUtilitiesTests: adjust
When constructing a `URL` with a file path, we should always use
`init(fileURLWithPath:)` as not all paths are represented as a URL and
require additional encoding. On Windows, this would result in us
stripping the drive prefix (`C:`) which would corrupt the path and thus
fail to lookup the item. In the second instance, this allowed us to
simply avoid an object copy entirely.
This helps improve the test pass rate significantly on Windows.TestFileSystem's handling of paths (#655)1 parent d3239b1 commit adc2200
1 file changed
+2
-8
lines changedLines changed: 2 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
| 212 | + | |
218 | 213 | | |
219 | 214 | | |
220 | 215 | | |
| |||
262 | 257 | | |
263 | 258 | | |
264 | 259 | | |
265 | | - | |
266 | | - | |
| 260 | + | |
267 | 261 | | |
268 | 262 | | |
269 | 263 | | |
| |||
0 commit comments