Skip to content

Commit 702fd84

Browse files
committed
Use the correct test method
1 parent a76e78d commit 702fd84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/stdlib/Filter.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,15 @@ FilterTests.test("chained filter order") {
7979
let lazyFilter = array.lazy
8080
.filter { _ in false }
8181
.filter { _ in
82-
expectationFailure("Executed second filter before first")
82+
expectUnreachable("Executed second filter before first")
8383
return true
8484
}
8585
let lazyResult = Array(lazyFilter)
8686

8787
let result = array
8888
.filter { _ in false }
8989
.filter { _ in
90-
expectationFailure("Executed second filter before first")
90+
expectUnreachable("Executed second filter before first")
9191
return true
9292
}
9393

0 commit comments

Comments
 (0)