[stdlib] Update tests for new partition APIs

Special thanks to @aschwaighofer for help with these tests and fix-its!
This commit is contained in:
Nate Cook
2016-07-14 16:44:00 -05:00
parent d7ee56088f
commit 1d037800b9
6 changed files with 46 additions and 23 deletions

View File

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