Skip to content

Commit 1dda72d

Browse files
authored
Merge pull request swiftlang#81172 from glessard/rdar150282203-false-positive-test-failure-6.2
[6.2, test] eliminate the possibility of a false positive
2 parents 39bb97e + 53eacb5 commit 1dda72d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/stdlib/Span/SpanTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ suite.test("_elementsEqual(_: Span)")
247247
let capacity = 4
248248
let a = Array<Int>(unsafeUninitializedCapacity: capacity) {
249249
for i in $0.indices {
250-
$0.initializeElement(at: i, to: .random(in: 0..<10))
250+
$0.initializeElement(at: i, to: i)
251251
}
252252
$1 = $0.count
253253
}

0 commit comments

Comments
 (0)