[validation-test] Extracting array and slice types conformance tests

Since these tests take the most time, spliting them into 'one type -
one conformance' pairs to maximize parallelism.

<rdar://problem/30269532>
This commit is contained in:
Max Moiseev
2017-02-07 11:55:57 -08:00
parent 9cfa949891
commit a552cd45e5
18 changed files with 908 additions and 105 deletions

View File

@@ -0,0 +1,41 @@
//===----------------------------------------------------------------------===//
// Automatically Generated From validation-test/stdlib/Array/Inputs/ArrayConformanceTests.swift.gyb
// Do Not Edit Directly!
//===----------------------------------------------------------------------===//
// RUN: %target-run-simple-swift
// REQUIRES: executable_test
import StdlibUnittest
import StdlibCollectionUnittest
let tests = TestSuite("Array_RangeReplaceableRandomAccessCollectionVal")
do {
var resiliencyChecks = CollectionMisuseResiliencyChecks.all
resiliencyChecks.creatingOutOfBoundsIndicesBehavior = .none
// Test RangeReplaceableCollectionType conformance with value type elements.
tests.addRangeReplaceableRandomAccessCollectionTests(
"Array.",
makeCollection: { (elements: [OpaqueValue<Int>]) in
return Array(elements)
},
wrapValue: identity,
extractValue: identity,
makeCollectionOfEquatable: { (elements: [MinimalEquatableValue]) in
return Array(elements)
},
wrapValueIntoEquatable: identityEq,
extractValueFromEquatable: identityEq,
resiliencyChecks: resiliencyChecks)
} // do
runAllTests()