Skip to content

Commit 594f46c

Browse files
authored
Merge pull request #81170 from glessard/rdar150282203-false-positive-test-failure
[test] eliminate the possibility of a false positive
2 parents 26bdff8 + 8f1ab06 commit 594f46c

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)