mirror of
https://github.com/apple/swift-collections
synced 2026-11-27 04:54:21 +00:00
Check MutableSpan with checkPermutableContainer
Also run the permutable container checker against the mutable span of a RigidArray, over the same layouts. MutableSpan is nonescapable, so this also runs the checker on a nonescapable container. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
69a2d15395
commit
a9967e32eb
1 file changed
+2
@@ -106,6 +106,8 @@ class RigidArrayTests: CollectionTestCase {
|
||||
var items = tracker.rigidArray(layout: layout)
|
||||
let expected = (0 ..< layout.count).map { tracker.instance(for: $0) }
|
||||
checkPermutableContainer(&items, expectedContents: expected)
|
||||
var span = items.mutableSpan
|
||||
checkPermutableContainer(&span, expectedContents: expected)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user