Skip to content

Commit 82d849e

Browse files
committed
Remove the portions of these tests that were relying on old stdlib APIs.
Judging from history, the original tests appear to just be attempts to flesh out test coverage rather than specific regression tests, and the features in question are well-covered by other tests.
1 parent 527bef6 commit 82d849e

File tree

2 files changed

+0
-56
lines changed

2 files changed

+0
-56
lines changed

test/Generics/associated_self_constraints.swift

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -54,19 +54,6 @@ class Subject<T>: Observer, Observable {
5454
}
5555
}
5656

57-
/*
58-
FIXME: <rdar://problem/25666028> swift-3-indexing-model: Generics/associated_self_constraints.swift
59-
struct X<T> {
60-
mutating func replace<
61-
C : Collection where C.Iterator.Element == T, C.Index : Strideable
62-
>(a: C) {
63-
for i in a.startIndex..<a.endIndex {
64-
_ = a[i] as T
65-
}
66-
}
67-
}
68-
*/
69-
7057
protocol P {
7158
associatedtype A
7259

test/Interpreter/protocol_extensions.swift

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -29,36 +29,6 @@ extension Collection {
2929
// CHECK: 4
3030
print(["a", "b", "c", "d"].clone().myCount)
3131

32-
/*
33-
FIXME: <rdar://problem/25665969> swift-3-indexing-model: Interpreter/protocol_extensions.swift fails
34-
extension Collection {
35-
final func indexMatching(_ fn: Iterator.Element -> Bool) -> Index? {
36-
for i in myIndices {
37-
if fn(self[i]) { return i }
38-
}
39-
return nil
40-
}
41-
}
42-
43-
// CHECK-FIXME: 2
44-
print(["a", "b", "c", "d"].indexMatching({$0 == "c"})!)
45-
46-
// Extend certain instances of a collection (those that have equatable
47-
// element types) with another algorithm.
48-
extension Collection where Self.Iterator.Element : Equatable {
49-
final func myIndexOf(_ element: Iterator.Element) -> Index? {
50-
for i in self.indices {
51-
if self[i] == element { return i }
52-
}
53-
54-
return nil
55-
}
56-
}
57-
58-
// CHECK-FIXME: 3
59-
print(["a", "b", "c", "d", "e"].myIndexOf("d")!)
60-
*/
61-
6232
extension Sequence {
6333
final public func myEnumerated() -> EnumeratedSequence<Self> {
6434
return self.enumerated()
@@ -110,19 +80,6 @@ extension MutableCollection
11080
}
11181
}
11282

113-
/*
114-
FIXME: <rdar://problem/25665969> swift-3-indexing-model: Interpreter/protocol_extensions.swift fails
115-
// CHECK-FIXME: 4 3 1 2 | 5 9 8 6 7 6
116-
var evenOdd = [5, 3, 6, 2, 4, 9, 8, 1, 7, 6]
117-
var evenOddSplit = evenOdd.myPartition()
118-
for i in evenOdd.myIndices {
119-
if i == evenOddSplit { print(" |", terminator: "") }
120-
if i > 0 { print(" ", terminator: "") }
121-
print(evenOdd[i], terminator: "")
122-
}
123-
print("")
124-
*/
125-
12683
extension RangeReplaceableCollection {
12784
public final func myJoin<S : Sequence where S.Iterator.Element == Self>(
12885
_ elements: S

0 commit comments

Comments
 (0)