Check RigidDeque with checkMutableContainer

Run the mutable container checker, which also runs the bidirectional
one, against RigidDeque over every storage layout. With #793's
spanBoundary fix reverted, it fails with a negated distance.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Joseph CursioandClaude Opus 5.5 committed 2026-10-27 04:51:50 -05:00
1 parent d1f377cb2d
commit 6ed61375a6
1 file changed
+10
+10
View File
@@ -144,6 +144,16 @@ final class RigidDequeTests: CollectionTestCase {
}
}
}
@available(SwiftStdlib 6.4, *)
func test_validate_MutableContainer() {
withEveryDeque("layout", ofCapacities: [0, 1, 2, 3, 5, 10]) { layout in
withLifetimeTracking { tracker in
var data = tracker.rigidDeque(with: layout)
checkMutableContainer(&data.deque, expectedContents: data.contents)
}
}
}
#endif
func test_basicProperties() {