Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix tests when building swift-format using Swift 6.0.2
When traversing the file URL with Foundation from Swift 6.0.2, you get the following components - `["/", "C:", "test.swift"]` - `["/", "C:"]` - `[]` The component count never reaches 1. Foundation from Swift 6.1 goes - `["/", "C:", "test.swift"]` - `["/", "C:"]` - `["/"]` Cover both cases by checking for `<= 1` instead of `== 1`
- Loading branch information