Skip to content

Commit 545302e

Browse files
authored
Merge pull request #17481 from ahoppen/sequence-test
[stdlib] Make test for Sequence.map actually test a sequence
2 parents 7b0b15e + 06b0153 commit 545302e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/stdlib/ErrorHandling.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
//
77

88
import StdlibUnittest
9+
import StdlibCollectionUnittest
910

1011

1112
var NoisyCount = 0
@@ -280,8 +281,8 @@ ErrorHandlingTests.test("ErrorHandling/operators") {
280281

281282
ErrorHandlingTests.test("ErrorHandling/Sequence map") {
282283
let initialCount = NoisyCount
283-
let sequence = AnySequence([1, 2, 3])
284284
for throwAtCount in 0...3 {
285+
let sequence = MinimalSequence(elements: [1, 2, 3])
285286
var loopCount = 0
286287
do {
287288
let result: [Noisy] = try sequence.map { _ in

0 commit comments

Comments
 (0)