Revert "Implement SE-0118"

This commit is contained in:
Michael Gottesman
2016-07-18 16:44:58 -07:00
committed by GitHub
parent 3b378f7313
commit fc37603c5f
64 changed files with 348 additions and 380 deletions

View File

@@ -144,12 +144,12 @@ func randomArray() -> A<Int> {
Algorithm.test("invalidOrderings") {
withInvalidOrderings {
var a = randomArray()
_blackHole(a.sorted(by: $0))
_blackHole(a.sorted(isOrderedBefore: $0))
}
withInvalidOrderings {
var a: A<Int>
a = randomArray()
_ = a.partition(by: $0)
_ = a.partition(isOrderedBefore: $0)
}
/*
// FIXME: Disabled due to <rdar://problem/17734737> Unimplemented:
@@ -188,7 +188,7 @@ func makeQSortKiller(_ len: Int) -> [Int] {
var ary = [Int](repeating: 0, count: len)
var ret = [Int](repeating: 0, count: len)
for i in 0..<len { ary[i] = i }
ary = ary.sorted(by: Compare)
ary = ary.sorted(isOrderedBefore: Compare)
for i in 0..<len {
ret[ary[i]] = i
}