mirror of
https://github.com/apple/swift-collections
synced 2026-11-25 04:37:48 +00:00
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:
1 parent
d1f377cb2d
commit
6ed61375a6
1 file changed
+10
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user