mirror of
https://github.com/apple/swift-collections
synced 2026-11-27 04:54:21 +00:00
Check swapAt(_:_:), the one requirement PermutableContainer adds to Container, against an Array model. The checker swaps every pair of indices, including an index with itself, and then repeats the same swaps in reverse order, comparing the whole container after each swap. That leaves the container holding the expected contents in their original order. It first runs validateContainer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>