//===----------------------------------------------------------------------===// // // This source file is part of the Swift Algorithms open source project // // Copyright (c) 2020 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/LICENSE.txt for license information // //===----------------------------------------------------------------------===// import XCTest import Algorithms extension Collection { fileprivate func range(at offsets: Range) -> Range { let low = index(startIndex, offsetBy: offsets.lowerBound) let high = index(low, offsetBy: offsets.count) return low..