We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea40837 commit a2a9f46Copy full SHA for a2a9f46
test/stdlib/Span/OutputSpanTests.swift
@@ -330,19 +330,16 @@ suite.test("InlineArray initialization")
330
.require(.stdlib_6_2).code {
331
guard #available(SwiftStdlib 6.2, *) else { return }
332
333
- var a: [Int] = []
334
-
335
let i = InlineArray<10, Int> {
336
(o: inout OutputSpan<Int>) in
337
- for _ in 0..<o.capacity {
338
- let r = Int.random(in: 10...99)
339
- a.append(r)
340
- o.append(r)
+ expectEqual(o.count, 0)
+ for i in 0..<o.capacity {
+ o.append(i)
341
}
+ expectEqual(o.freeCapacity, 0)
342
343
- expectEqual(a.count, i.count)
344
for j in i.indices {
345
- expectEqual(a[j], i[j])
+ expectEqual(j, i[j])
346
347
348
0 commit comments