Karoy Lorentey
5dfd51238c
[OrderedSet] Review, test, fix, and document set relation predicates
2022-10-19 15:20:30 -07:00
Karoy Lorentey
4604c1bc38
[test] Add SetAPIChecker protocol
...
This is useful for validating the API surface of set-like types,
ensuring that we haven’t forgotten to implement members that
are part of users’ baseline expectations.
To ensure maximum utility, this protocol refines neither Collection
nor SetAlgebra.
2022-10-09 13:33:23 -07:00
Karoy Lorentey
6437aea75a
[PersistentCollections] Improve test coverage & fixtures
2022-09-27 14:18:40 -07:00
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
9a9d7d87d8
Merge branch 'release/1.0'
...
# Conflicts:
# .swiftpm/xcode/xcshareddata/xcschemes/swift-collections-Package.xcscheme
# Utils/swift-collections.xcworkspace/xcshareddata/xcschemes/Collections.xcscheme
# Utils/swift-collections.xcworkspace/xcshareddata/xcschemes/OrderedCollections.xcscheme
# Utils/swift-collections.xcworkspace/xcshareddata/xcschemes/swift-collections-Package.xcscheme
2022-09-02 15:30:31 -07:00
Karoy Lorentey
71aa4a39ae
[OrderedDictionary] Resolve spurious(?) call-site ambiguities
2022-08-31 17:57:24 -07:00
Konrad `ktoso` Malawski
876586f924
expect type is correct
2022-08-17 11:06:07 +09:00
Konrad `ktoso` Malawski
4138ccd68e
improve test to cover more cases
2022-08-17 11:01:07 +09:00
Konrad `ktoso` Malawski
6142869b83
+OrderedSet add filter #158
2022-08-16 20:37:44 +09:00
Karoy Lorentey
50e6a1ac71
[OrderedDictionary] Fix type inference issue with OrderedDictionary.init(grouping:by:)
...
This adds a new overload to help the type checker infer `[S.Element]` as the default `Value` type.
Resolves #139 .
2022-02-08 14:16:18 -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
9d4bb8cdf8
[OrderedDictionary] Remove deprecated API
...
Mark the deprecated `subscript(offset:)` and `modifyValue(...)` APIs unavailable and replace their bodies with fatalError().
2021-09-03 19:11:29 -07: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
Karoy Lorentey
9d8719c8be
[OrderedDictionary] Deprecate subscript(offset:) for now ( #92 )
...
* [OrderedDictionary] Deprecate index(forKey:), subscript(offset:) and friends for now
* [OrderedDictionary] Update tests
* Update benchmarks
* Un-deprecate index(forKey:)
2021-08-19 19:26:41 -07:00
Karoy Lorentey
1e68069c98
[OrderedDictionary] modifyValue → updateValue ( #91 )
...
* [OrderedDictionary] modifyValue → updateValue
* Update CMakeLists.txt
2021-08-19 19:26:41 -07:00
Andrew Monshizadeh
f1c6cb4a4f
Mark OrderedSetDiffingTests with availability ( #54 )
2021-06-21 10:42:49 -07:00
Michael Steindorfer
fe745fc2e8
[OrderedCollections] Correct spelling of BitsetTests filename ( #29 )
2021-04-29 20:19:51 -07:00
Scott Perry
fcaad7a824
Myers worst case performance tests
2021-04-05 20:29:17 -07:00
Scott Perry
d3ab8e8536
Performance testing and diff size checks, along with fuzzer test demonstrating greedy minimalism tradeoff
2021-04-05 20:24:22 -07:00
Scott Perry
7401c23c18
Basic implementation of OrderedSet.applying() balancing performance with code complexity
2021-04-05 19:19:28 -07:00
Scott Perry
c71b73954e
Match style
2021-04-05 19:07:03 -07:00
Scott Perry
ed375766aa
Initial implementation of diffing (and tests!) for OrderedSet
2021-04-05 18:35:23 -07:00
Karoy Lorentey
a2bcac435f
Initial import.
...
Introduce OrderedCollections module
2021-04-05 09:41:00 -07:00