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:
Joseph CursioandClaude Opus 5.5 committed 2026-11-05 16:48:47 -06:00
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)
}
}
}