Karoy Lorentey
b7bfc52664
[test] Add Dictionary API checker protocol
...
This can be used to verify that a new dictionary implementation
provides all expected members.
2022-09-19 21:25:07 -07:00
Karoy Lorentey
d2e82ada53
[tests] checkBidirectionalCollection: Don’t pointlessly repeat index(_:offsetBy:limitedBy:) probe
2022-09-19 17:27:22 -07:00
Karoy Lorentey
de31437ee5
Merge branch 'feature/PersistentCollections' into release/1.1
2022-09-19 16:02:51 -07:00
Karoy Lorentey
31eca4a02c
Merge branch 'feature/BitSet' into release/1.1
...
# Conflicts:
# Utils/swift-collections.xcworkspace/xcshareddata/xcschemes/Collections.xcscheme
2022-09-19 16:00:20 -07:00
Karoy Lorentey
52e3ea6ca9
[test] LifetimeTracked: Implement high-fidelity hash forwarding
...
`RawCollider` doesn’t like to get called through the high-level
hashing APIs.
2022-09-16 01:31:15 -07:00
Karoy Lorentey
fcac09d86a
[BitSet, BitArray] Add random factories
2022-08-25 22:21:34 -07:00
Karoy Lorentey
30da8ea7a1
[test] Enable index(_:offsetBy:limitedBy:) checks
2022-08-25 20:26:48 -07:00
Konrad `ktoso` Malawski
876586f924
expect type is correct
2022-08-17 11:06:07 +09:00
Karoy Lorentey
565c09e8d5
Review & update BitArray
2022-02-06 22:38:35 -08:00
Károly Lőrentey
13b5889757
[OrderedCollections][test] Strengthen withHiddenCopies tests
...
`withHiddenCopies(if:of:)` is supposed to check for value semantic violations where mutations of one copy affect another -- however, it currently only checks that iteration returns the same items before/after the change, not that the old copy is still in a fully consistent state.
Add an extra parameter that can be set to a closure that performs stricter checks.
Use it to call `_checkInvariants()` in ordered collections tests, uncovering a missing uniqueness check in `OrderedSet._insertNew(_:at:in:)`.
2021-11-11 00:39:29 -08:00
Karoy Lorentey
f1f48d569a
[test] CollectionsTestSupport → _CollectionsTestSupport
...
The underscored module name makes it clear that this isn't public API.
2021-09-03 15:57:09 -07:00