[stdlib] Update partition tests with feedback

This commit is contained in:
Nate Cook
2016-07-15 00:39:25 -05:00
parent 13d1ac5b81
commit 29bbff221b
4 changed files with 44 additions and 84 deletions

View File

@@ -150,9 +150,8 @@ Algorithm.test("invalidOrderings") {
var a: A<Int>
a = randomArray()
let lt = $0
if let first = a.first {
_ = a.partition(by: { !lt($0, first) })
}
let first = a.first
_ = a.partition(by: { !lt($0, first!) })
}
/*
// FIXME: Disabled due to <rdar://problem/17734737> Unimplemented: