diff --git a/Tests/BitCollectionsTests/BitArrayTestSupport_orig.swift b/Tests/BitCollectionsTests/BitArrayTestSupport_orig.swift deleted file mode 100644 index c0331e2e..00000000 --- a/Tests/BitCollectionsTests/BitArrayTestSupport_orig.swift +++ /dev/null @@ -1,70 +0,0 @@ -// -// File.swift -// -// -// Created by Mahanaz Atiqullah on 7/15/21. -// -import _CollectionsTestSupport -@_spi(Testing) import BitCollections - -func withSomeUsefulBoolArrays( - _ label: String, - ofSizes sizes: C, - ofUnitBitWidth bitWidth: Int, - file: StaticString = #file, line: UInt = #line, - _ body: ([Bool]) throws -> Void -) rethrows -> Void where C.Element == Int { - - for size in sizes { - let allFalses = Array(repeating: false, count: size) - let falseEntry = TestContext.current.push("\(label): \(allFalses)", file: file, line: line) - do { - defer { TestContext.current.pop(falseEntry) } - try body(allFalses) - } - let allTrues = Array(repeating: true, count: size) - let trueEntry = TestContext.current.push("\(label): \(allTrues)", file: file, line: line) - do { - defer { TestContext.current.pop(trueEntry) } - try body(allTrues) - } - for _ in 0 ... 10 { - let array = (0 ..< size).map { _ in Bool.random() } - let entry = TestContext.current.push("\(label): \(array)", file: file, line: line) - defer { TestContext.current.pop(entry) } - try body(array) - } - } -} - -func withTheirBitSetLayout( - _ label: String, - ofLayout layout: C, - file: StaticString = #file, line: UInt = #line, - _ body: ([Int]) throws -> Void -) rethrows -> Void where C.Element == Bool, C.Index == Int { - var intArray: [Int] = [] - for index in 0.. [Int] { - var sizes: [Int] = [] - for i in 0...bitWidth+1 { - sizes.append(i) - } - - sizes.append(2*bitWidth-1) - sizes.append(2*bitWidth) - sizes.append(2*bitWidth+1) - sizes.append(2*bitWidth + Int.random(in: 2.. bitArrayFromSet.storage.count) { - for index in 0..