mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[stdlib] More reliably avoid running duplicate tests
Removing the “checksAdded” parameter from collection unit tests and simply sharing a global variable is a better way to go. We don't use threads at that level, so there's no thread safety issue, and we already committed to globals when we introduced the logging wrappers.
This commit is contained in:
@@ -12,6 +12,8 @@
|
|||||||
|
|
||||||
import StdlibUnittest
|
import StdlibUnittest
|
||||||
|
|
||||||
|
internal var checksAdded: Set<String> = []
|
||||||
|
|
||||||
public struct SubscriptRangeTest {
|
public struct SubscriptRangeTest {
|
||||||
public let expected: [OpaqueValue<Int>]
|
public let expected: [OpaqueValue<Int>]
|
||||||
public let collection: [OpaqueValue<Int>]
|
public let collection: [OpaqueValue<Int>]
|
||||||
@@ -479,7 +481,6 @@ internal func _product<C1 : Collection, C2 : Collection>(
|
|||||||
extractValueFromEquatable:
|
extractValueFromEquatable:
|
||||||
((CollectionWithEquatableElement.Iterator.Element) -> MinimalEquatableValue),
|
((CollectionWithEquatableElement.Iterator.Element) -> MinimalEquatableValue),
|
||||||
|
|
||||||
checksAdded: Box<Set<String>> = Box([]),
|
|
||||||
resiliencyChecks: CollectionMisuseResiliencyChecks = .all,
|
resiliencyChecks: CollectionMisuseResiliencyChecks = .all,
|
||||||
outOfBoundsIndexOffset: Int = 1,
|
outOfBoundsIndexOffset: Int = 1,
|
||||||
outOfBoundsSubscriptOffset: Int = 1,
|
outOfBoundsSubscriptOffset: Int = 1,
|
||||||
@@ -498,10 +499,10 @@ extension TestSuite {
|
|||||||
>(${testParams} = false) {
|
>(${testParams} = false) {
|
||||||
var testNamePrefix = testNamePrefix
|
var testNamePrefix = testNamePrefix
|
||||||
|
|
||||||
if checksAdded.value.contains(#function) {
|
if checksAdded.contains(#function) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
checksAdded.value.insert(#function)
|
checksAdded.insert(#function)
|
||||||
|
|
||||||
addSequenceTests(
|
addSequenceTests(
|
||||||
testNamePrefix,
|
testNamePrefix,
|
||||||
@@ -511,7 +512,6 @@ extension TestSuite {
|
|||||||
makeSequenceOfEquatable: makeCollectionOfEquatable,
|
makeSequenceOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: wrapValueIntoEquatable,
|
wrapValueIntoEquatable: wrapValueIntoEquatable,
|
||||||
extractValueFromEquatable: extractValueFromEquatable,
|
extractValueFromEquatable: extractValueFromEquatable,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks)
|
resiliencyChecks: resiliencyChecks)
|
||||||
|
|
||||||
func makeWrappedCollection(_ elements: [OpaqueValue<Int>]) -> C {
|
func makeWrappedCollection(_ elements: [OpaqueValue<Int>]) -> C {
|
||||||
@@ -1164,10 +1164,10 @@ extension TestSuite {
|
|||||||
${testConstraints('BidirectionalCollection')}
|
${testConstraints('BidirectionalCollection')}
|
||||||
>(${testParams} = true) {
|
>(${testParams} = true) {
|
||||||
var testNamePrefix = testNamePrefix
|
var testNamePrefix = testNamePrefix
|
||||||
if checksAdded.value.contains(#function) {
|
if checksAdded.contains(#function) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
checksAdded.value.insert(#function)
|
checksAdded.insert(#function)
|
||||||
|
|
||||||
addCollectionTests(${forwardTestArgs})
|
addCollectionTests(${forwardTestArgs})
|
||||||
|
|
||||||
@@ -1477,10 +1477,10 @@ extension TestSuite {
|
|||||||
>(${testParams} = true) {
|
>(${testParams} = true) {
|
||||||
var testNamePrefix = testNamePrefix
|
var testNamePrefix = testNamePrefix
|
||||||
|
|
||||||
if checksAdded.value.contains(#function) {
|
if checksAdded.contains(#function) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
checksAdded.value.insert(#function)
|
checksAdded.insert(#function)
|
||||||
|
|
||||||
addBidirectionalCollectionTests(${forwardTestArgs})
|
addBidirectionalCollectionTests(${forwardTestArgs})
|
||||||
|
|
||||||
@@ -1526,10 +1526,10 @@ extension TestSuite {
|
|||||||
func addCommonTests<
|
func addCommonTests<
|
||||||
${testConstraints(collectionForTraversal(Traversal))}
|
${testConstraints(collectionForTraversal(Traversal))}
|
||||||
>(${testParams}) {
|
>(${testParams}) {
|
||||||
if checksAdded.value.contains(#function) {
|
if checksAdded.contains(#function) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
checksAdded.value.insert(#function)
|
checksAdded.insert(#function)
|
||||||
|
|
||||||
func toCollection(_ r: CountableRange<Int>) -> C {
|
func toCollection(_ r: CountableRange<Int>) -> C {
|
||||||
return makeCollection(r.map { wrapValue(OpaqueValue($0)) })
|
return makeCollection(r.map { wrapValue(OpaqueValue($0)) })
|
||||||
|
|||||||
@@ -102,7 +102,6 @@ extension TestSuite {
|
|||||||
wrapValueIntoComparable: (MinimalComparableValue) -> CollectionWithComparableElement.Iterator.Element,
|
wrapValueIntoComparable: (MinimalComparableValue) -> CollectionWithComparableElement.Iterator.Element,
|
||||||
extractValueFromComparable: ((CollectionWithComparableElement.Iterator.Element) -> MinimalComparableValue),
|
extractValueFromComparable: ((CollectionWithComparableElement.Iterator.Element) -> MinimalComparableValue),
|
||||||
|
|
||||||
checksAdded: Box<Set<String>> = Box([]),
|
|
||||||
resiliencyChecks: CollectionMisuseResiliencyChecks = .all,
|
resiliencyChecks: CollectionMisuseResiliencyChecks = .all,
|
||||||
outOfBoundsIndexOffset: Int = 1,
|
outOfBoundsIndexOffset: Int = 1,
|
||||||
outOfBoundsSubscriptOffset: Int = 1,
|
outOfBoundsSubscriptOffset: Int = 1,
|
||||||
@@ -112,10 +111,10 @@ extension TestSuite {
|
|||||||
) {
|
) {
|
||||||
var testNamePrefix = testNamePrefix
|
var testNamePrefix = testNamePrefix
|
||||||
|
|
||||||
if checksAdded.value.contains(#function) {
|
if checksAdded.contains(#function) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
checksAdded.value.insert(#function)
|
checksAdded.insert(#function)
|
||||||
|
|
||||||
addCollectionTests(
|
addCollectionTests(
|
||||||
testNamePrefix,
|
testNamePrefix,
|
||||||
@@ -125,7 +124,6 @@ extension TestSuite {
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: wrapValueIntoEquatable,
|
wrapValueIntoEquatable: wrapValueIntoEquatable,
|
||||||
extractValueFromEquatable: extractValueFromEquatable,
|
extractValueFromEquatable: extractValueFromEquatable,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: outOfBoundsIndexOffset,
|
outOfBoundsIndexOffset: outOfBoundsIndexOffset,
|
||||||
outOfBoundsSubscriptOffset: outOfBoundsSubscriptOffset,
|
outOfBoundsSubscriptOffset: outOfBoundsSubscriptOffset,
|
||||||
@@ -614,7 +612,6 @@ self.test("\(testNamePrefix).sorted/${'Predicate' if predicate else 'WhereElemen
|
|||||||
wrapValueIntoComparable: (MinimalComparableValue) -> CollectionWithComparableElement.Iterator.Element,
|
wrapValueIntoComparable: (MinimalComparableValue) -> CollectionWithComparableElement.Iterator.Element,
|
||||||
extractValueFromComparable: ((CollectionWithComparableElement.Iterator.Element) -> MinimalComparableValue),
|
extractValueFromComparable: ((CollectionWithComparableElement.Iterator.Element) -> MinimalComparableValue),
|
||||||
|
|
||||||
checksAdded: Box<Set<String>> = Box([]),
|
|
||||||
resiliencyChecks: CollectionMisuseResiliencyChecks = .all,
|
resiliencyChecks: CollectionMisuseResiliencyChecks = .all,
|
||||||
outOfBoundsIndexOffset: Int = 1,
|
outOfBoundsIndexOffset: Int = 1,
|
||||||
outOfBoundsSubscriptOffset: Int = 1,
|
outOfBoundsSubscriptOffset: Int = 1,
|
||||||
@@ -623,10 +620,10 @@ self.test("\(testNamePrefix).sorted/${'Predicate' if predicate else 'WhereElemen
|
|||||||
) {
|
) {
|
||||||
var testNamePrefix = testNamePrefix
|
var testNamePrefix = testNamePrefix
|
||||||
|
|
||||||
if checksAdded.value.contains(#function) {
|
if checksAdded.contains(#function) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
checksAdded.value.insert(#function)
|
checksAdded.insert(#function)
|
||||||
|
|
||||||
addMutableCollectionTests(
|
addMutableCollectionTests(
|
||||||
testNamePrefix,
|
testNamePrefix,
|
||||||
@@ -639,7 +636,6 @@ self.test("\(testNamePrefix).sorted/${'Predicate' if predicate else 'WhereElemen
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: wrapValueIntoComparable,
|
wrapValueIntoComparable: wrapValueIntoComparable,
|
||||||
extractValueFromComparable: extractValueFromComparable,
|
extractValueFromComparable: extractValueFromComparable,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: outOfBoundsIndexOffset,
|
outOfBoundsIndexOffset: outOfBoundsIndexOffset,
|
||||||
outOfBoundsSubscriptOffset: outOfBoundsSubscriptOffset,
|
outOfBoundsSubscriptOffset: outOfBoundsSubscriptOffset,
|
||||||
@@ -657,7 +653,6 @@ self.test("\(testNamePrefix).sorted/${'Predicate' if predicate else 'WhereElemen
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: wrapValueIntoEquatable,
|
wrapValueIntoEquatable: wrapValueIntoEquatable,
|
||||||
extractValueFromEquatable: extractValueFromEquatable,
|
extractValueFromEquatable: extractValueFromEquatable,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: outOfBoundsIndexOffset,
|
outOfBoundsIndexOffset: outOfBoundsIndexOffset,
|
||||||
outOfBoundsSubscriptOffset: outOfBoundsSubscriptOffset)
|
outOfBoundsSubscriptOffset: outOfBoundsSubscriptOffset)
|
||||||
@@ -725,7 +720,6 @@ if resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior != .none {
|
|||||||
wrapValueIntoComparable: (MinimalComparableValue) -> CollectionWithComparableElement.Iterator.Element,
|
wrapValueIntoComparable: (MinimalComparableValue) -> CollectionWithComparableElement.Iterator.Element,
|
||||||
extractValueFromComparable: ((CollectionWithComparableElement.Iterator.Element) -> MinimalComparableValue),
|
extractValueFromComparable: ((CollectionWithComparableElement.Iterator.Element) -> MinimalComparableValue),
|
||||||
|
|
||||||
checksAdded: Box<Set<String>> = Box([]),
|
|
||||||
resiliencyChecks: CollectionMisuseResiliencyChecks = .all,
|
resiliencyChecks: CollectionMisuseResiliencyChecks = .all,
|
||||||
outOfBoundsIndexOffset: Int = 1,
|
outOfBoundsIndexOffset: Int = 1,
|
||||||
outOfBoundsSubscriptOffset: Int = 1,
|
outOfBoundsSubscriptOffset: Int = 1,
|
||||||
@@ -734,10 +728,10 @@ if resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior != .none {
|
|||||||
) {
|
) {
|
||||||
var testNamePrefix = testNamePrefix
|
var testNamePrefix = testNamePrefix
|
||||||
|
|
||||||
if checksAdded.value.contains(#function) {
|
if checksAdded.contains(#function) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
checksAdded.value.insert(#function)
|
checksAdded.insert(#function)
|
||||||
|
|
||||||
addMutableBidirectionalCollectionTests(
|
addMutableBidirectionalCollectionTests(
|
||||||
testNamePrefix,
|
testNamePrefix,
|
||||||
@@ -750,7 +744,6 @@ if resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior != .none {
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: wrapValueIntoComparable,
|
wrapValueIntoComparable: wrapValueIntoComparable,
|
||||||
extractValueFromComparable: extractValueFromComparable,
|
extractValueFromComparable: extractValueFromComparable,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: outOfBoundsIndexOffset,
|
outOfBoundsIndexOffset: outOfBoundsIndexOffset,
|
||||||
outOfBoundsSubscriptOffset: outOfBoundsSubscriptOffset,
|
outOfBoundsSubscriptOffset: outOfBoundsSubscriptOffset,
|
||||||
@@ -766,7 +759,6 @@ if resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior != .none {
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: wrapValueIntoEquatable,
|
wrapValueIntoEquatable: wrapValueIntoEquatable,
|
||||||
extractValueFromEquatable: extractValueFromEquatable,
|
extractValueFromEquatable: extractValueFromEquatable,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: outOfBoundsIndexOffset,
|
outOfBoundsIndexOffset: outOfBoundsIndexOffset,
|
||||||
outOfBoundsSubscriptOffset: outOfBoundsSubscriptOffset)
|
outOfBoundsSubscriptOffset: outOfBoundsSubscriptOffset)
|
||||||
|
|||||||
@@ -442,17 +442,16 @@ extension TestSuite {
|
|||||||
wrapValueIntoEquatable: (MinimalEquatableValue) -> CollectionWithEquatableElement.Iterator.Element,
|
wrapValueIntoEquatable: (MinimalEquatableValue) -> CollectionWithEquatableElement.Iterator.Element,
|
||||||
extractValueFromEquatable: ((CollectionWithEquatableElement.Iterator.Element) -> MinimalEquatableValue),
|
extractValueFromEquatable: ((CollectionWithEquatableElement.Iterator.Element) -> MinimalEquatableValue),
|
||||||
|
|
||||||
checksAdded: Box<Set<String>> = Box([]),
|
|
||||||
resiliencyChecks: CollectionMisuseResiliencyChecks = .all,
|
resiliencyChecks: CollectionMisuseResiliencyChecks = .all,
|
||||||
outOfBoundsIndexOffset: Int = 1,
|
outOfBoundsIndexOffset: Int = 1,
|
||||||
collectionIsBidirectional: Bool = false
|
collectionIsBidirectional: Bool = false
|
||||||
) {
|
) {
|
||||||
var testNamePrefix = testNamePrefix
|
var testNamePrefix = testNamePrefix
|
||||||
|
|
||||||
if checksAdded.value.contains(#function) {
|
if checksAdded.contains(#function) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
checksAdded.value.insert(#function)
|
checksAdded.insert(#function)
|
||||||
|
|
||||||
addCollectionTests(
|
addCollectionTests(
|
||||||
testNamePrefix,
|
testNamePrefix,
|
||||||
@@ -462,7 +461,6 @@ extension TestSuite {
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: wrapValueIntoEquatable,
|
wrapValueIntoEquatable: wrapValueIntoEquatable,
|
||||||
extractValueFromEquatable: extractValueFromEquatable,
|
extractValueFromEquatable: extractValueFromEquatable,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: outOfBoundsIndexOffset,
|
outOfBoundsIndexOffset: outOfBoundsIndexOffset,
|
||||||
collectionIsBidirectional: collectionIsBidirectional
|
collectionIsBidirectional: collectionIsBidirectional
|
||||||
@@ -1171,16 +1169,15 @@ self.test("\(testNamePrefix).OperatorPlus") {
|
|||||||
wrapValueIntoEquatable: (MinimalEquatableValue) -> CollectionWithEquatableElement.Iterator.Element,
|
wrapValueIntoEquatable: (MinimalEquatableValue) -> CollectionWithEquatableElement.Iterator.Element,
|
||||||
extractValueFromEquatable: ((CollectionWithEquatableElement.Iterator.Element) -> MinimalEquatableValue),
|
extractValueFromEquatable: ((CollectionWithEquatableElement.Iterator.Element) -> MinimalEquatableValue),
|
||||||
|
|
||||||
checksAdded: Box<Set<String>> = Box([]),
|
|
||||||
resiliencyChecks: CollectionMisuseResiliencyChecks = .all,
|
resiliencyChecks: CollectionMisuseResiliencyChecks = .all,
|
||||||
outOfBoundsIndexOffset: Int = 1
|
outOfBoundsIndexOffset: Int = 1
|
||||||
) {
|
) {
|
||||||
var testNamePrefix = testNamePrefix
|
var testNamePrefix = testNamePrefix
|
||||||
|
|
||||||
if checksAdded.value.contains(#function) {
|
if checksAdded.contains(#function) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
checksAdded.value.insert(#function)
|
checksAdded.insert(#function)
|
||||||
|
|
||||||
addRangeReplaceableCollectionTests(
|
addRangeReplaceableCollectionTests(
|
||||||
testNamePrefix,
|
testNamePrefix,
|
||||||
@@ -1190,7 +1187,6 @@ self.test("\(testNamePrefix).OperatorPlus") {
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: wrapValueIntoEquatable,
|
wrapValueIntoEquatable: wrapValueIntoEquatable,
|
||||||
extractValueFromEquatable: extractValueFromEquatable,
|
extractValueFromEquatable: extractValueFromEquatable,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: outOfBoundsIndexOffset,
|
outOfBoundsIndexOffset: outOfBoundsIndexOffset,
|
||||||
collectionIsBidirectional: true
|
collectionIsBidirectional: true
|
||||||
@@ -1204,7 +1200,6 @@ self.test("\(testNamePrefix).OperatorPlus") {
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: wrapValueIntoEquatable,
|
wrapValueIntoEquatable: wrapValueIntoEquatable,
|
||||||
extractValueFromEquatable: extractValueFromEquatable,
|
extractValueFromEquatable: extractValueFromEquatable,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: outOfBoundsIndexOffset)
|
outOfBoundsIndexOffset: outOfBoundsIndexOffset)
|
||||||
|
|
||||||
@@ -1302,16 +1297,15 @@ self.test("\(testNamePrefix).removeLast(n: Int)/whereIndexIsBidirectional/remove
|
|||||||
wrapValueIntoEquatable: (MinimalEquatableValue) -> CollectionWithEquatableElement.Iterator.Element,
|
wrapValueIntoEquatable: (MinimalEquatableValue) -> CollectionWithEquatableElement.Iterator.Element,
|
||||||
extractValueFromEquatable: ((CollectionWithEquatableElement.Iterator.Element) -> MinimalEquatableValue),
|
extractValueFromEquatable: ((CollectionWithEquatableElement.Iterator.Element) -> MinimalEquatableValue),
|
||||||
|
|
||||||
checksAdded: Box<Set<String>> = Box([]),
|
|
||||||
resiliencyChecks: CollectionMisuseResiliencyChecks = .all,
|
resiliencyChecks: CollectionMisuseResiliencyChecks = .all,
|
||||||
outOfBoundsIndexOffset: Int = 1
|
outOfBoundsIndexOffset: Int = 1
|
||||||
) {
|
) {
|
||||||
var testNamePrefix = testNamePrefix
|
var testNamePrefix = testNamePrefix
|
||||||
|
|
||||||
if checksAdded.value.contains(#function) {
|
if checksAdded.contains(#function) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
checksAdded.value.insert(#function)
|
checksAdded.insert(#function)
|
||||||
|
|
||||||
addRangeReplaceableBidirectionalCollectionTests(
|
addRangeReplaceableBidirectionalCollectionTests(
|
||||||
testNamePrefix,
|
testNamePrefix,
|
||||||
@@ -1321,7 +1315,6 @@ self.test("\(testNamePrefix).removeLast(n: Int)/whereIndexIsBidirectional/remove
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: wrapValueIntoEquatable,
|
wrapValueIntoEquatable: wrapValueIntoEquatable,
|
||||||
extractValueFromEquatable: extractValueFromEquatable,
|
extractValueFromEquatable: extractValueFromEquatable,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: outOfBoundsIndexOffset)
|
outOfBoundsIndexOffset: outOfBoundsIndexOffset)
|
||||||
|
|
||||||
@@ -1333,7 +1326,6 @@ self.test("\(testNamePrefix).removeLast(n: Int)/whereIndexIsBidirectional/remove
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: wrapValueIntoEquatable,
|
wrapValueIntoEquatable: wrapValueIntoEquatable,
|
||||||
extractValueFromEquatable: extractValueFromEquatable,
|
extractValueFromEquatable: extractValueFromEquatable,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: outOfBoundsIndexOffset)
|
outOfBoundsIndexOffset: outOfBoundsIndexOffset)
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,6 @@ extension TestSuite {
|
|||||||
wrapValueIntoEquatable: (MinimalEquatableValue) -> CollectionWithEquatableElement.Iterator.Element,
|
wrapValueIntoEquatable: (MinimalEquatableValue) -> CollectionWithEquatableElement.Iterator.Element,
|
||||||
extractValueFromEquatable: ((CollectionWithEquatableElement.Iterator.Element) -> MinimalEquatableValue),
|
extractValueFromEquatable: ((CollectionWithEquatableElement.Iterator.Element) -> MinimalEquatableValue),
|
||||||
|
|
||||||
checksAdded: Box<Set<String>> = Box([]),
|
|
||||||
resiliencyChecks: CollectionMisuseResiliencyChecks = .all,
|
resiliencyChecks: CollectionMisuseResiliencyChecks = .all,
|
||||||
outOfBoundsIndexOffset: Int = 1,
|
outOfBoundsIndexOffset: Int = 1,
|
||||||
collectionIsBidirectional: Bool = false
|
collectionIsBidirectional: Bool = false
|
||||||
@@ -44,10 +43,10 @@ extension TestSuite {
|
|||||||
var testNamePrefix = testNamePrefix
|
var testNamePrefix = testNamePrefix
|
||||||
|
|
||||||
// Don't run the same tests twice.
|
// Don't run the same tests twice.
|
||||||
if checksAdded.value.contains(#function) {
|
if checksAdded.contains(#function) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
checksAdded.value.insert(#function)
|
checksAdded.insert(#function)
|
||||||
|
|
||||||
addRangeReplaceableCollectionTests(
|
addRangeReplaceableCollectionTests(
|
||||||
testNamePrefix,
|
testNamePrefix,
|
||||||
@@ -57,7 +56,6 @@ extension TestSuite {
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: wrapValueIntoEquatable,
|
wrapValueIntoEquatable: wrapValueIntoEquatable,
|
||||||
extractValueFromEquatable: extractValueFromEquatable,
|
extractValueFromEquatable: extractValueFromEquatable,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: outOfBoundsIndexOffset,
|
outOfBoundsIndexOffset: outOfBoundsIndexOffset,
|
||||||
collectionIsBidirectional: collectionIsBidirectional
|
collectionIsBidirectional: collectionIsBidirectional
|
||||||
@@ -173,17 +171,16 @@ extension TestSuite {
|
|||||||
wrapValueIntoEquatable: (MinimalEquatableValue) -> CollectionWithEquatableElement.Iterator.Element,
|
wrapValueIntoEquatable: (MinimalEquatableValue) -> CollectionWithEquatableElement.Iterator.Element,
|
||||||
extractValueFromEquatable: ((CollectionWithEquatableElement.Iterator.Element) -> MinimalEquatableValue),
|
extractValueFromEquatable: ((CollectionWithEquatableElement.Iterator.Element) -> MinimalEquatableValue),
|
||||||
|
|
||||||
checksAdded: Box<Set<String>> = Box([]),
|
|
||||||
resiliencyChecks: CollectionMisuseResiliencyChecks = .all,
|
resiliencyChecks: CollectionMisuseResiliencyChecks = .all,
|
||||||
outOfBoundsIndexOffset: Int = 1
|
outOfBoundsIndexOffset: Int = 1
|
||||||
) {
|
) {
|
||||||
var testNamePrefix = testNamePrefix
|
var testNamePrefix = testNamePrefix
|
||||||
|
|
||||||
// Don't run the same tests twice.
|
// Don't run the same tests twice.
|
||||||
if checksAdded.value.contains(#function) {
|
if checksAdded.contains(#function) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
checksAdded.value.insert(#function)
|
checksAdded.insert(#function)
|
||||||
|
|
||||||
addRangeReplaceableSliceTests(
|
addRangeReplaceableSliceTests(
|
||||||
testNamePrefix,
|
testNamePrefix,
|
||||||
@@ -193,7 +190,6 @@ extension TestSuite {
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: wrapValueIntoEquatable,
|
wrapValueIntoEquatable: wrapValueIntoEquatable,
|
||||||
extractValueFromEquatable: extractValueFromEquatable,
|
extractValueFromEquatable: extractValueFromEquatable,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: outOfBoundsIndexOffset,
|
outOfBoundsIndexOffset: outOfBoundsIndexOffset,
|
||||||
collectionIsBidirectional: true
|
collectionIsBidirectional: true
|
||||||
@@ -207,7 +203,6 @@ extension TestSuite {
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: wrapValueIntoEquatable,
|
wrapValueIntoEquatable: wrapValueIntoEquatable,
|
||||||
extractValueFromEquatable: extractValueFromEquatable,
|
extractValueFromEquatable: extractValueFromEquatable,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: outOfBoundsIndexOffset)
|
outOfBoundsIndexOffset: outOfBoundsIndexOffset)
|
||||||
|
|
||||||
@@ -323,17 +318,16 @@ extension TestSuite {
|
|||||||
wrapValueIntoEquatable: (MinimalEquatableValue) -> CollectionWithEquatableElement.Iterator.Element,
|
wrapValueIntoEquatable: (MinimalEquatableValue) -> CollectionWithEquatableElement.Iterator.Element,
|
||||||
extractValueFromEquatable: ((CollectionWithEquatableElement.Iterator.Element) -> MinimalEquatableValue),
|
extractValueFromEquatable: ((CollectionWithEquatableElement.Iterator.Element) -> MinimalEquatableValue),
|
||||||
|
|
||||||
checksAdded: Box<Set<String>> = Box([]),
|
|
||||||
resiliencyChecks: CollectionMisuseResiliencyChecks = .all,
|
resiliencyChecks: CollectionMisuseResiliencyChecks = .all,
|
||||||
outOfBoundsIndexOffset: Int = 1
|
outOfBoundsIndexOffset: Int = 1
|
||||||
) {
|
) {
|
||||||
var testNamePrefix = testNamePrefix
|
var testNamePrefix = testNamePrefix
|
||||||
|
|
||||||
// Don't run the same tests twice.
|
// Don't run the same tests twice.
|
||||||
if checksAdded.value.contains(#function) {
|
if checksAdded.contains(#function) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
checksAdded.value.insert(#function)
|
checksAdded.insert(#function)
|
||||||
|
|
||||||
addRangeReplaceableBidirectionalSliceTests(
|
addRangeReplaceableBidirectionalSliceTests(
|
||||||
testNamePrefix,
|
testNamePrefix,
|
||||||
@@ -343,7 +337,6 @@ extension TestSuite {
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: wrapValueIntoEquatable,
|
wrapValueIntoEquatable: wrapValueIntoEquatable,
|
||||||
extractValueFromEquatable: extractValueFromEquatable,
|
extractValueFromEquatable: extractValueFromEquatable,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: outOfBoundsIndexOffset)
|
outOfBoundsIndexOffset: outOfBoundsIndexOffset)
|
||||||
|
|
||||||
@@ -355,7 +348,6 @@ extension TestSuite {
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: wrapValueIntoEquatable,
|
wrapValueIntoEquatable: wrapValueIntoEquatable,
|
||||||
extractValueFromEquatable: extractValueFromEquatable,
|
extractValueFromEquatable: extractValueFromEquatable,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: outOfBoundsIndexOffset)
|
outOfBoundsIndexOffset: outOfBoundsIndexOffset)
|
||||||
|
|
||||||
|
|||||||
@@ -1463,15 +1463,14 @@ extension TestSuite {
|
|||||||
wrapValueIntoEquatable: (MinimalEquatableValue) -> SequenceWithEquatableElement.Iterator.Element,
|
wrapValueIntoEquatable: (MinimalEquatableValue) -> SequenceWithEquatableElement.Iterator.Element,
|
||||||
extractValueFromEquatable: ((SequenceWithEquatableElement.Iterator.Element) -> MinimalEquatableValue),
|
extractValueFromEquatable: ((SequenceWithEquatableElement.Iterator.Element) -> MinimalEquatableValue),
|
||||||
|
|
||||||
checksAdded: Box<Set<String>> = Box([]),
|
|
||||||
resiliencyChecks: CollectionMisuseResiliencyChecks = .all
|
resiliencyChecks: CollectionMisuseResiliencyChecks = .all
|
||||||
) {
|
) {
|
||||||
var testNamePrefix = testNamePrefix
|
var testNamePrefix = testNamePrefix
|
||||||
|
|
||||||
if checksAdded.value.contains(#function) {
|
if checksAdded.contains(#function) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
checksAdded.value.insert(#function)
|
checksAdded.insert(#function)
|
||||||
|
|
||||||
func makeWrappedSequence(_ elements: [OpaqueValue<Int>]) -> S {
|
func makeWrappedSequence(_ elements: [OpaqueValue<Int>]) -> S {
|
||||||
return makeSequence(elements.map(wrapValue))
|
return makeSequence(elements.map(wrapValue))
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ var CollectionTests = TestSuite("Collection")
|
|||||||
|
|
||||||
// Test collections using value types as elements.
|
// Test collections using value types as elements.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -42,14 +41,12 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Test collections using a reference type as element.
|
// Test collections using a reference type as element.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -69,7 +66,6 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ var CollectionTests = TestSuite("Collection")
|
|||||||
|
|
||||||
// Test collections using value types as elements.
|
// Test collections using value types as elements.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -42,14 +41,12 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Test collections using a reference type as element.
|
// Test collections using a reference type as element.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -69,7 +66,6 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ var CollectionTests = TestSuite("Collection")
|
|||||||
|
|
||||||
// Test collections using value types as elements.
|
// Test collections using value types as elements.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -47,7 +46,6 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
isFixedLengthCollection: true
|
isFixedLengthCollection: true
|
||||||
@@ -56,7 +54,6 @@ do {
|
|||||||
|
|
||||||
// Test collections using a reference type as element.
|
// Test collections using a reference type as element.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -82,7 +79,6 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
isFixedLengthCollection: true
|
isFixedLengthCollection: true
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ var CollectionTests = TestSuite("Collection")
|
|||||||
|
|
||||||
// Test collections using value types as elements.
|
// Test collections using value types as elements.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -47,7 +46,6 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
isFixedLengthCollection: true
|
isFixedLengthCollection: true
|
||||||
@@ -56,7 +54,6 @@ do {
|
|||||||
|
|
||||||
// Test collections using a reference type as element.
|
// Test collections using a reference type as element.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -82,7 +79,6 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
isFixedLengthCollection: true
|
isFixedLengthCollection: true
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ var CollectionTests = TestSuite("Collection")
|
|||||||
|
|
||||||
// Test collections using value types as elements.
|
// Test collections using value types as elements.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -47,7 +46,6 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
isFixedLengthCollection: true
|
isFixedLengthCollection: true
|
||||||
@@ -56,7 +54,6 @@ do {
|
|||||||
|
|
||||||
// Test collections using a reference type as element.
|
// Test collections using a reference type as element.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -82,7 +79,6 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
isFixedLengthCollection: true
|
isFixedLengthCollection: true
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ var CollectionTests = TestSuite("Collection")
|
|||||||
|
|
||||||
// Test collections using value types as elements.
|
// Test collections using value types as elements.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -42,7 +41,6 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
)
|
)
|
||||||
CollectionTests.addMutableBidirectionalCollectionTests(
|
CollectionTests.addMutableBidirectionalCollectionTests(
|
||||||
@@ -61,7 +59,6 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
isFixedLengthCollection: true
|
isFixedLengthCollection: true
|
||||||
@@ -70,7 +67,6 @@ do {
|
|||||||
|
|
||||||
// Test collections using a reference type as element.
|
// Test collections using a reference type as element.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -90,7 +86,6 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
)
|
)
|
||||||
CollectionTests.addMutableBidirectionalCollectionTests(
|
CollectionTests.addMutableBidirectionalCollectionTests(
|
||||||
@@ -115,7 +110,6 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
isFixedLengthCollection: true
|
isFixedLengthCollection: true
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ var CollectionTests = TestSuite("Collection")
|
|||||||
|
|
||||||
// Test collections using value types as elements.
|
// Test collections using value types as elements.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -42,7 +41,6 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
)
|
)
|
||||||
CollectionTests.addMutableCollectionTests(
|
CollectionTests.addMutableCollectionTests(
|
||||||
@@ -61,7 +59,6 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
isFixedLengthCollection: true
|
isFixedLengthCollection: true
|
||||||
@@ -70,7 +67,6 @@ do {
|
|||||||
|
|
||||||
// Test collections using a reference type as element.
|
// Test collections using a reference type as element.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -90,7 +86,6 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
)
|
)
|
||||||
CollectionTests.addMutableCollectionTests(
|
CollectionTests.addMutableCollectionTests(
|
||||||
@@ -115,7 +110,6 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
isFixedLengthCollection: true
|
isFixedLengthCollection: true
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ var CollectionTests = TestSuite("Collection")
|
|||||||
|
|
||||||
// Test collections using value types as elements.
|
// Test collections using value types as elements.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -42,7 +41,6 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
)
|
)
|
||||||
CollectionTests.addMutableRandomAccessCollectionTests(
|
CollectionTests.addMutableRandomAccessCollectionTests(
|
||||||
@@ -61,7 +59,6 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
isFixedLengthCollection: true
|
isFixedLengthCollection: true
|
||||||
@@ -70,7 +67,6 @@ do {
|
|||||||
|
|
||||||
// Test collections using a reference type as element.
|
// Test collections using a reference type as element.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -90,7 +86,6 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
)
|
)
|
||||||
CollectionTests.addMutableRandomAccessCollectionTests(
|
CollectionTests.addMutableRandomAccessCollectionTests(
|
||||||
@@ -115,7 +110,6 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
isFixedLengthCollection: true
|
isFixedLengthCollection: true
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ var CollectionTests = TestSuite("Collection")
|
|||||||
|
|
||||||
// Test collections using value types as elements.
|
// Test collections using value types as elements.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -42,14 +41,12 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Test collections using a reference type as element.
|
// Test collections using a reference type as element.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -69,7 +66,6 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ var CollectionTests = TestSuite("Collection")
|
|||||||
|
|
||||||
// Test collections using value types as elements.
|
// Test collections using value types as elements.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -42,14 +41,12 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Test collections using a reference type as element.
|
// Test collections using a reference type as element.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -69,7 +66,6 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ var CollectionTests = TestSuite("Collection")
|
|||||||
|
|
||||||
// Test collections using value types as elements.
|
// Test collections using value types as elements.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -42,14 +41,12 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Test collections using a reference type as element.
|
// Test collections using a reference type as element.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -69,7 +66,6 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ var CollectionTests = TestSuite("Collection")
|
|||||||
|
|
||||||
// Test collections using value types as elements.
|
// Test collections using value types as elements.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -42,14 +41,12 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Test collections using a reference type as element.
|
// Test collections using a reference type as element.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -69,7 +66,6 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -84,7 +84,6 @@ var CollectionTests = TestSuite("Collection")
|
|||||||
|
|
||||||
// Test collections using value types as elements.
|
// Test collections using value types as elements.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -107,7 +106,6 @@ do {
|
|||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
% end
|
% end
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
% if 'Mutable' in method:
|
% if 'Mutable' in method:
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
@@ -119,7 +117,6 @@ do {
|
|||||||
|
|
||||||
// Test collections using a reference type as element.
|
// Test collections using a reference type as element.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -148,7 +145,6 @@ do {
|
|||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
% end
|
% end
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
% if 'Mutable' in method:
|
% if 'Mutable' in method:
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ var CollectionTests = TestSuite("Collection")
|
|||||||
|
|
||||||
// Test collections using value types as elements.
|
// Test collections using value types as elements.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -42,14 +41,12 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Test collections using a reference type as element.
|
// Test collections using a reference type as element.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -69,7 +66,6 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ var CollectionTests = TestSuite("Collection")
|
|||||||
|
|
||||||
// Test collections using value types as elements.
|
// Test collections using value types as elements.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -42,14 +41,12 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Test collections using a reference type as element.
|
// Test collections using a reference type as element.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -69,7 +66,6 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ var CollectionTests = TestSuite("Collection")
|
|||||||
|
|
||||||
// Test collections using value types as elements.
|
// Test collections using value types as elements.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -47,7 +46,6 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
isFixedLengthCollection: true
|
isFixedLengthCollection: true
|
||||||
@@ -56,7 +54,6 @@ do {
|
|||||||
|
|
||||||
// Test collections using a reference type as element.
|
// Test collections using a reference type as element.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -82,7 +79,6 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
isFixedLengthCollection: true
|
isFixedLengthCollection: true
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ var CollectionTests = TestSuite("Collection")
|
|||||||
|
|
||||||
// Test collections using value types as elements.
|
// Test collections using value types as elements.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -47,7 +46,6 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
isFixedLengthCollection: true
|
isFixedLengthCollection: true
|
||||||
@@ -56,7 +54,6 @@ do {
|
|||||||
|
|
||||||
// Test collections using a reference type as element.
|
// Test collections using a reference type as element.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -82,7 +79,6 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
isFixedLengthCollection: true
|
isFixedLengthCollection: true
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ var CollectionTests = TestSuite("Collection")
|
|||||||
|
|
||||||
// Test collections using value types as elements.
|
// Test collections using value types as elements.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -47,7 +46,6 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
isFixedLengthCollection: true
|
isFixedLengthCollection: true
|
||||||
@@ -56,7 +54,6 @@ do {
|
|||||||
|
|
||||||
// Test collections using a reference type as element.
|
// Test collections using a reference type as element.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -82,7 +79,6 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
isFixedLengthCollection: true
|
isFixedLengthCollection: true
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ var CollectionTests = TestSuite("Collection")
|
|||||||
|
|
||||||
// Test collections using value types as elements.
|
// Test collections using value types as elements.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -42,7 +41,6 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
)
|
)
|
||||||
CollectionTests.addMutableBidirectionalCollectionTests(
|
CollectionTests.addMutableBidirectionalCollectionTests(
|
||||||
@@ -61,7 +59,6 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
isFixedLengthCollection: true
|
isFixedLengthCollection: true
|
||||||
@@ -70,7 +67,6 @@ do {
|
|||||||
|
|
||||||
// Test collections using a reference type as element.
|
// Test collections using a reference type as element.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -90,7 +86,6 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
)
|
)
|
||||||
CollectionTests.addMutableBidirectionalCollectionTests(
|
CollectionTests.addMutableBidirectionalCollectionTests(
|
||||||
@@ -115,7 +110,6 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
isFixedLengthCollection: true
|
isFixedLengthCollection: true
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ var CollectionTests = TestSuite("Collection")
|
|||||||
|
|
||||||
// Test collections using value types as elements.
|
// Test collections using value types as elements.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -42,7 +41,6 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
)
|
)
|
||||||
CollectionTests.addMutableCollectionTests(
|
CollectionTests.addMutableCollectionTests(
|
||||||
@@ -61,7 +59,6 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
isFixedLengthCollection: true
|
isFixedLengthCollection: true
|
||||||
@@ -70,7 +67,6 @@ do {
|
|||||||
|
|
||||||
// Test collections using a reference type as element.
|
// Test collections using a reference type as element.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -90,7 +86,6 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
)
|
)
|
||||||
CollectionTests.addMutableCollectionTests(
|
CollectionTests.addMutableCollectionTests(
|
||||||
@@ -115,7 +110,6 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
isFixedLengthCollection: true
|
isFixedLengthCollection: true
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ var CollectionTests = TestSuite("Collection")
|
|||||||
|
|
||||||
// Test collections using value types as elements.
|
// Test collections using value types as elements.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -42,7 +41,6 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
)
|
)
|
||||||
CollectionTests.addMutableRandomAccessCollectionTests(
|
CollectionTests.addMutableRandomAccessCollectionTests(
|
||||||
@@ -61,7 +59,6 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
isFixedLengthCollection: true
|
isFixedLengthCollection: true
|
||||||
@@ -70,7 +67,6 @@ do {
|
|||||||
|
|
||||||
// Test collections using a reference type as element.
|
// Test collections using a reference type as element.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -90,7 +86,6 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
)
|
)
|
||||||
CollectionTests.addMutableRandomAccessCollectionTests(
|
CollectionTests.addMutableRandomAccessCollectionTests(
|
||||||
@@ -115,7 +110,6 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
isFixedLengthCollection: true
|
isFixedLengthCollection: true
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ var CollectionTests = TestSuite("Collection")
|
|||||||
|
|
||||||
// Test collections using value types as elements.
|
// Test collections using value types as elements.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -42,14 +41,12 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Test collections using a reference type as element.
|
// Test collections using a reference type as element.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -69,7 +66,6 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ var CollectionTests = TestSuite("Collection")
|
|||||||
|
|
||||||
// Test collections using value types as elements.
|
// Test collections using value types as elements.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -42,14 +41,12 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Test collections using a reference type as element.
|
// Test collections using a reference type as element.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -69,7 +66,6 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ var CollectionTests = TestSuite("Collection")
|
|||||||
|
|
||||||
// Test collections using value types as elements.
|
// Test collections using value types as elements.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -42,14 +41,12 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Test collections using a reference type as element.
|
// Test collections using a reference type as element.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -69,7 +66,6 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ var CollectionTests = TestSuite("Collection")
|
|||||||
|
|
||||||
// Test collections using value types as elements.
|
// Test collections using value types as elements.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -42,14 +41,12 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Test collections using a reference type as element.
|
// Test collections using a reference type as element.
|
||||||
do {
|
do {
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
|
|
||||||
@@ -69,7 +66,6 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks
|
resiliencyChecks: resiliencyChecks
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -440,7 +440,6 @@ do {
|
|||||||
return ${AnyCollection}(base)
|
return ${AnyCollection}(base)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
|
|
||||||
AnyCollectionTests.add${collectionForTraversal(Traversal)}Tests(
|
AnyCollectionTests.add${collectionForTraversal(Traversal)}Tests(
|
||||||
"tests.",
|
"tests.",
|
||||||
@@ -450,7 +449,6 @@ do {
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: CollectionMisuseResiliencyChecks.all,
|
resiliencyChecks: CollectionMisuseResiliencyChecks.all,
|
||||||
collectionIsBidirectional: ${'false' if Traversal == 'Forward' else 'true'}
|
collectionIsBidirectional: ${'false' if Traversal == 'Forward' else 'true'}
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1122,7 +1122,6 @@ SequenceTypeTests.test("_copyToNativeArrayBuffer/OverestimatedCount")
|
|||||||
|
|
||||||
% for Base in ['DefaultedSequence', 'MinimalSequence']:
|
% for Base in ['DefaultedSequence', 'MinimalSequence']:
|
||||||
do {
|
do {
|
||||||
let checksAdded: Box<Set<String>> = Box([])
|
|
||||||
let resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
let resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
|
|
||||||
SequenceTypeTests.addSequenceTests(
|
SequenceTypeTests.addSequenceTests(
|
||||||
@@ -1136,7 +1135,6 @@ do {
|
|||||||
},
|
},
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks)
|
resiliencyChecks: resiliencyChecks)
|
||||||
}
|
}
|
||||||
% end
|
% end
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -96,7 +95,6 @@ SliceTests.addBidirectionalCollectionTests(
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -96,7 +95,6 @@ SliceTests.addBidirectionalCollectionTests(
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -96,7 +95,6 @@ SliceTests.addBidirectionalCollectionTests(
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -96,7 +95,6 @@ SliceTests.addBidirectionalCollectionTests(
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -96,7 +95,6 @@ SliceTests.addBidirectionalCollectionTests(
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -96,7 +95,6 @@ SliceTests.addBidirectionalCollectionTests(
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -96,7 +95,6 @@ SliceTests.addBidirectionalCollectionTests(
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -96,7 +95,6 @@ SliceTests.addBidirectionalCollectionTests(
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -152,7 +152,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -172,7 +171,6 @@ SliceTests.add${method}Tests(
|
|||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
% end
|
% end
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
% if 'Mutable' in method:
|
% if 'Mutable' in method:
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -99,7 +98,6 @@ SliceTests.addMutableBidirectionalCollectionTests(
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -99,7 +98,6 @@ SliceTests.addMutableBidirectionalCollectionTests(
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -99,7 +98,6 @@ SliceTests.addMutableBidirectionalCollectionTests(
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -99,7 +98,6 @@ SliceTests.addMutableBidirectionalCollectionTests(
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -99,7 +98,6 @@ SliceTests.addMutableBidirectionalCollectionTests(
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -99,7 +98,6 @@ SliceTests.addMutableBidirectionalCollectionTests(
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -99,7 +98,6 @@ SliceTests.addMutableBidirectionalCollectionTests(
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -99,7 +98,6 @@ SliceTests.addMutableBidirectionalCollectionTests(
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -99,7 +98,6 @@ SliceTests.addMutableRandomAccessCollectionTests(
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -99,7 +98,6 @@ SliceTests.addMutableRandomAccessCollectionTests(
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -99,7 +98,6 @@ SliceTests.addMutableRandomAccessCollectionTests(
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -99,7 +98,6 @@ SliceTests.addMutableRandomAccessCollectionTests(
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -99,7 +98,6 @@ SliceTests.addMutableRandomAccessCollectionTests(
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -99,7 +98,6 @@ SliceTests.addMutableRandomAccessCollectionTests(
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -99,7 +98,6 @@ SliceTests.addMutableRandomAccessCollectionTests(
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -99,7 +98,6 @@ SliceTests.addMutableRandomAccessCollectionTests(
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -96,7 +95,6 @@ SliceTests.addRangeReplaceableBidirectionalSliceTests(
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
)
|
)
|
||||||
@@ -111,7 +109,6 @@ SliceTests.addMutableBidirectionalCollectionTests(
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -96,7 +95,6 @@ SliceTests.addRangeReplaceableBidirectionalSliceTests(
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
)
|
)
|
||||||
@@ -111,7 +109,6 @@ SliceTests.addMutableBidirectionalCollectionTests(
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -96,7 +95,6 @@ SliceTests.addRangeReplaceableBidirectionalSliceTests(
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
)
|
)
|
||||||
@@ -111,7 +109,6 @@ SliceTests.addMutableBidirectionalCollectionTests(
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -96,7 +95,6 @@ SliceTests.addRangeReplaceableBidirectionalSliceTests(
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
)
|
)
|
||||||
@@ -111,7 +109,6 @@ SliceTests.addMutableBidirectionalCollectionTests(
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -96,7 +95,6 @@ SliceTests.addRangeReplaceableBidirectionalSliceTests(
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
)
|
)
|
||||||
@@ -111,7 +109,6 @@ SliceTests.addMutableBidirectionalCollectionTests(
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -96,7 +95,6 @@ SliceTests.addRangeReplaceableBidirectionalSliceTests(
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
)
|
)
|
||||||
@@ -111,7 +109,6 @@ SliceTests.addMutableBidirectionalCollectionTests(
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -96,7 +95,6 @@ SliceTests.addRangeReplaceableBidirectionalSliceTests(
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
)
|
)
|
||||||
@@ -111,7 +109,6 @@ SliceTests.addMutableBidirectionalCollectionTests(
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -96,7 +95,6 @@ SliceTests.addRangeReplaceableBidirectionalSliceTests(
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
)
|
)
|
||||||
@@ -111,7 +109,6 @@ SliceTests.addMutableBidirectionalCollectionTests(
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -96,7 +95,6 @@ SliceTests.addRangeReplaceableRandomAccessSliceTests(
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
)
|
)
|
||||||
@@ -111,7 +109,6 @@ SliceTests.addMutableRandomAccessCollectionTests(
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -96,7 +95,6 @@ SliceTests.addRangeReplaceableRandomAccessSliceTests(
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
)
|
)
|
||||||
@@ -111,7 +109,6 @@ SliceTests.addMutableRandomAccessCollectionTests(
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -96,7 +95,6 @@ SliceTests.addRangeReplaceableRandomAccessSliceTests(
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
)
|
)
|
||||||
@@ -111,7 +109,6 @@ SliceTests.addMutableRandomAccessCollectionTests(
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -96,7 +95,6 @@ SliceTests.addRangeReplaceableRandomAccessSliceTests(
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
)
|
)
|
||||||
@@ -111,7 +109,6 @@ SliceTests.addMutableRandomAccessCollectionTests(
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -96,7 +95,6 @@ SliceTests.addRangeReplaceableRandomAccessSliceTests(
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
)
|
)
|
||||||
@@ -111,7 +109,6 @@ SliceTests.addMutableRandomAccessCollectionTests(
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -96,7 +95,6 @@ SliceTests.addRangeReplaceableRandomAccessSliceTests(
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
)
|
)
|
||||||
@@ -111,7 +109,6 @@ SliceTests.addMutableRandomAccessCollectionTests(
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -96,7 +95,6 @@ SliceTests.addRangeReplaceableRandomAccessSliceTests(
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
)
|
)
|
||||||
@@ -111,7 +109,6 @@ SliceTests.addMutableRandomAccessCollectionTests(
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -96,7 +95,6 @@ SliceTests.addRangeReplaceableRandomAccessSliceTests(
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
)
|
)
|
||||||
@@ -111,7 +109,6 @@ SliceTests.addMutableRandomAccessCollectionTests(
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -96,7 +95,6 @@ SliceTests.addRangeReplaceableSliceTests(
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
)
|
)
|
||||||
@@ -111,7 +109,6 @@ SliceTests.addMutableCollectionTests(
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -96,7 +95,6 @@ SliceTests.addRangeReplaceableSliceTests(
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
)
|
)
|
||||||
@@ -111,7 +109,6 @@ SliceTests.addMutableCollectionTests(
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -96,7 +95,6 @@ SliceTests.addRangeReplaceableSliceTests(
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
)
|
)
|
||||||
@@ -111,7 +109,6 @@ SliceTests.addMutableCollectionTests(
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -96,7 +95,6 @@ SliceTests.addRangeReplaceableSliceTests(
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
)
|
)
|
||||||
@@ -111,7 +109,6 @@ SliceTests.addMutableCollectionTests(
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -96,7 +95,6 @@ SliceTests.addRangeReplaceableSliceTests(
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
)
|
)
|
||||||
@@ -111,7 +109,6 @@ SliceTests.addMutableCollectionTests(
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -96,7 +95,6 @@ SliceTests.addRangeReplaceableSliceTests(
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
)
|
)
|
||||||
@@ -111,7 +109,6 @@ SliceTests.addMutableCollectionTests(
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -96,7 +95,6 @@ SliceTests.addRangeReplaceableSliceTests(
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
)
|
)
|
||||||
@@ -111,7 +109,6 @@ SliceTests.addMutableCollectionTests(
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -96,7 +95,6 @@ SliceTests.addRangeReplaceableSliceTests(
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
)
|
)
|
||||||
@@ -111,7 +109,6 @@ SliceTests.addMutableCollectionTests(
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -99,7 +98,6 @@ SliceTests.addMutableCollectionTests(
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -99,7 +98,6 @@ SliceTests.addMutableCollectionTests(
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -99,7 +98,6 @@ SliceTests.addMutableCollectionTests(
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -99,7 +98,6 @@ SliceTests.addMutableCollectionTests(
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -99,7 +98,6 @@ SliceTests.addMutableCollectionTests(
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -99,7 +98,6 @@ SliceTests.addMutableCollectionTests(
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -99,7 +98,6 @@ SliceTests.addMutableCollectionTests(
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -99,7 +98,6 @@ SliceTests.addMutableCollectionTests(
|
|||||||
makeCollectionOfComparable: makeCollectionOfComparable,
|
makeCollectionOfComparable: makeCollectionOfComparable,
|
||||||
wrapValueIntoComparable: identityComp,
|
wrapValueIntoComparable: identityComp,
|
||||||
extractValueFromComparable: identityComp,
|
extractValueFromComparable: identityComp,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
, withUnsafeMutableBufferPointerIsSupported: false,
|
, withUnsafeMutableBufferPointerIsSupported: false,
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -96,7 +95,6 @@ SliceTests.addRandomAccessCollectionTests(
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -96,7 +95,6 @@ SliceTests.addRandomAccessCollectionTests(
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -96,7 +95,6 @@ SliceTests.addRandomAccessCollectionTests(
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -96,7 +95,6 @@ SliceTests.addRandomAccessCollectionTests(
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -96,7 +95,6 @@ SliceTests.addRandomAccessCollectionTests(
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -96,7 +95,6 @@ SliceTests.addRandomAccessCollectionTests(
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -96,7 +95,6 @@ SliceTests.addRandomAccessCollectionTests(
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -96,7 +95,6 @@ SliceTests.addRandomAccessCollectionTests(
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -96,7 +95,6 @@ SliceTests.addRangeReplaceableBidirectionalSliceTests(
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -96,7 +95,6 @@ SliceTests.addRangeReplaceableBidirectionalSliceTests(
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
|
|||||||
bounds: startIndex..<endIndex)
|
bounds: startIndex..<endIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
var checksAdded: Box<Set<String>> = Box([])
|
|
||||||
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
|
||||||
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .trap
|
||||||
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior = .trap
|
||||||
@@ -96,7 +95,6 @@ SliceTests.addRangeReplaceableBidirectionalSliceTests(
|
|||||||
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
makeCollectionOfEquatable: makeCollectionOfEquatable,
|
||||||
wrapValueIntoEquatable: identityEq,
|
wrapValueIntoEquatable: identityEq,
|
||||||
extractValueFromEquatable: identityEq,
|
extractValueFromEquatable: identityEq,
|
||||||
checksAdded: checksAdded,
|
|
||||||
resiliencyChecks: resiliencyChecks,
|
resiliencyChecks: resiliencyChecks,
|
||||||
outOfBoundsIndexOffset: 6
|
outOfBoundsIndexOffset: 6
|
||||||
)
|
)
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user