Karoy Lorentey
de8ba5d7ad
[BitArray] Disable bitwise operators for now
...
The current family of operations is far too restrictive, and the generalization is a topic of ongoing investigation. In particular, the operator syntax seems unlikely to survive when we want to support operations over slices.
Don’t ship BitArray with API that we’ll potentially regret; instead, just leave these off for now.
2024-01-29 17:01:00 -08:00
Karoy Lorentey
1a0ac8c06c
Merge branch 'release/1.0' into release/1.1
...
# Conflicts:
# Sources/DequeModule/CMakeLists.txt
# Sources/DequeModule/Deque+Collection.swift
# Sources/DequeModule/Deque+Sendable.swift
# Sources/OrderedCollections/OrderedDictionary/OrderedDictionary+Elements.SubSequence.swift
# Sources/OrderedCollections/OrderedDictionary/OrderedDictionary+Elements.swift
# Sources/OrderedCollections/OrderedDictionary/OrderedDictionary+Sendable.swift
# Sources/OrderedCollections/OrderedDictionary/OrderedDictionary+Sequence.swift
# Sources/OrderedCollections/OrderedDictionary/OrderedDictionary+Values.swift
# Sources/OrderedCollections/OrderedSet/OrderedSet+Sendable.swift
# Sources/OrderedCollections/OrderedSet/OrderedSet+SubSequence.swift
# Sources/OrderedCollections/OrderedSet/OrderedSet+UnorderedView.swift
# Sources/OrderedCollections/OrderedSet/OrderedSet+UnstableInternals.swift
2023-12-21 15:17:15 -08:00
Karoy Lorentey
8b8a14f0e1
Merge pull request #340 from vanvoorden/vanvoorden/ordered-set-equality
...
[OrderedSet] forward ordered set equality to elements property
2023-12-12 21:54:30 -05:00
Rick van Voorden
525bb545c4
clean up ordered set equality test
2023-12-12 14:00:00 -08:00
Rick van Voorden
00ccf9a1c0
remove ordered set print statements
2023-12-12 12:31:14 -08:00
Rick van Voorden
0031fc7e36
update ordered set subsequence tests
2023-12-12 12:30:14 -08:00
Rick van Voorden and Karoy Lorentey
88404c3ae8
test through ordered set subsequences
...
Co-authored-by: Karoy Lorentey <klorentey@apple.com >
2023-12-12 11:38:24 -08:00
Rick van Voorden and Karoy Lorentey
d2662892cd
remove extra ordered dictionary elements test
...
Co-authored-by: Karoy Lorentey <klorentey@apple.com >
2023-12-12 11:18:50 -08:00
Rick van Voorden and Karoy Lorentey
baa3880e6e
add ordered dictionary test for equal identity
...
Co-authored-by: Karoy Lorentey <klorentey@apple.com >
2023-12-12 11:17:06 -08:00
Rick van Voorden
ba88bcad62
updated set equality tests
2023-12-11 17:40:12 -08:00
Rick van Voorden
edb431ee36
add set equality tests
2023-12-11 15:46:59 -08:00
Rick van Voorden
e42fb868b7
forward ordered dictionary values equality to values property
2023-12-08 17:39:25 -08:00
Karoy Lorentey
5fab05b1ea
Actually fix merge conflict
2023-11-14 18:21:56 -08:00
Karoy Lorentey
33e2e610f5
Merge branch 'release/1.0' into release/1.1
...
# Conflicts:
# Tests/_CollectionsTestSupport/MinimalTypes/MinimalDecoder.swift
2023-11-14 18:06:24 -08:00
Karoy Lorentey
09c09f0f73
Fix CustomStringConvertible/CustomDebugStringConvertible conformances
...
- For CustomStringConvertible, `description` should print elements using `String(reflecting:)` rather than `String(describing:)`, to avoid element output from interfering with syntactically relevant punctuation within structured list displays.
- To make this work without making displays overly verbose, make `debugDescription` mostly the same as `description`, except for escaping raw string displays when and if needed.
- Avoid printing type names in `debugDescription` — it is generally not helpful, as the type is already easily accessible elsewhere. Including it makes for overly verbose displays when the type serves as an Element of a collection.
- Avoid having `debugDescription` return the empty string — it can be confusing when such a description appears in list displays.
Resolves #301 .
2023-07-06 17:25:11 -07:00
Karoy Lorentey
03e7f0c401
[Rope] Fix find to return a zero remainder for the end position
2023-06-02 17:37:30 -07:00
Karoy Lorentey
03c9ef743a
[Rope] Fix crash when calling replaceSubrange/removeSubrange on an empty rope
2023-06-01 20:24:24 -07:00
Karoy Lorentey
374c3a4805
Migrate rope tests to CollectionsTestSupport assertions
2023-06-01 20:23:49 -07:00
Karoy Lorentey
9c91c5a3ee
Merge pull request #288 from lorentey/fix-test-issues
...
Grab bag of fixes for small test issues
2023-05-18 19:19:50 -07:00
Karoy Lorentey
a5fda7c368
[RopeModule] Reduce test workload on watchOS
2023-05-18 18:42:54 -07:00
Karoy Lorentey
d13dc28dbe
[CollectionsTestSupport] Fix rare overflow in integer square root tests
2023-05-18 18:42:29 -07:00
Karoy Lorentey
4b1aa5a640
[HashTreeCollections] Resolve issues with running tests on 32 bit systems
2023-05-18 18:41:42 -07:00
Karoy Lorentey
de0f594185
[BitSet] Fix a thinko in BitSet.isEqualSet
2023-05-18 18:36:29 -07:00
Karoy Lorentey
3fa52c48de
[Rope] Add remove(at:), remove(at:in:) variants that preserve the position
2023-04-13 19:36:09 -07:00
Karoy Lorentey
cead2b3d64
[Rope] index(_:offsetBy:in:preferEnd:) fix result tuple labeling
...
This renames `remainder` to `remaining`, restoring API consistency.
2023-04-12 17:54:13 -07:00
Karoy Lorentey
a8dad62bc9
Remove obsolete swift(>=5.5)/swift(>=5.6) checks
2023-04-10 18:33:52 -07:00
Karoy Lorentey
8ca5c0367f
Merge pull request #263 from lorentey/bitcollections-finalization
...
BitArray API refinements & additions
2023-04-10 17:32:10 -07:00
Karoy Lorentey
a0666cdcce
Resolve some leftover build issues
2023-03-23 14:23:45 -07:00
Karoy Lorentey
1666222de2
Add READMEs calling out the fact that the contents of Tests/, Utils/ & Xcode/ are unstable
2023-03-23 13:43:01 -07:00
Karoy Lorentey
f17cf642c1
Add support building with COLLECTIONS_SINGLE_MODULE
...
- Sources/_CollectionsTestSupport → Tests/_CollectionsTestSupport
- Refactor Package.swift to allow switching between the default
polymodule and the new monomodule product configurations
(by editing the manifest file).
- Fix build errors in the monomodule variant.
2023-03-22 21:44:23 -07:00
Karoy Lorentey
ea60d293b4
Fix test issues with single-module variant
2023-03-21 18:43:46 -07:00
Karoy Lorentey
cbab9e3737
Introduce COLLECTIONS_SINGLE_MODULE condition
2023-03-21 18:42:33 -07:00
Karoy Lorentey
fcd6800b9d
BigString: Slightly speed up a slow test
2023-03-21 11:42:56 -07:00
Karoy Lorentey
8394ea7575
Clean up test definitions
2023-03-21 01:30:03 -07:00
Karoy Lorentey
ad82bc3f80
Naming review
2023-03-21 01:21:43 -07:00
Karoy Lorentey
88286b661d
BigString: Fix Issue in utf16.distance when endpoint is on the trailing surrogate of the first scalar in a chunk
2023-03-21 01:04:12 -07:00
Karoy Lorentey
6f3f19d1c5
_Rope → Rope
2023-03-20 23:49:57 -07:00
Karoy Lorentey
0ad7f0ce38
_BString → BigString
2023-03-20 21:20:30 -07:00
Karoy Lorentey
706be4d9df
Also, don’t forget to call super.setUp
2023-03-20 19:54:44 -07:00
Karoy Lorentey
44cff40712
Work around SPM limitations around test case availability 💗
2023-03-20 19:34:52 -07:00
Karoy Lorentey
b022b7fee5
Make _BString and _Rope public
2023-03-20 18:36:37 -07:00
Karoy Lorentey
09577a31ee
RopeModule→_RopeModule. Stop reexporting it from Collections.
...
This module is not source stable; mark it as such by prepending
the module name with an underscore.
2023-03-20 16:47:56 -07:00
Karoy Lorentey
4849d54675
Add a compile-time conditional for enabling randomized testing, enabled by default
2023-03-20 13:12:14 -07:00
Karoy Lorentey
b50fb5aab5
_BString.resolve: Don’t crash when resolving indices in the empty string
2023-03-20 13:12:14 -07:00
Karoy Lorentey
b355480eb7
_BString: Make unicodeScalars properties mutable
2023-03-20 13:12:13 -07:00
Karoy Lorentey
b8927d819b
BigString: Flesh out views, make them consistent with _BString
2023-03-20 13:12:13 -07:00
Karoy Lorentey
d79a752fc8
_BString: Review views & add missing functionality/shortcuts
2023-03-20 13:12:13 -07:00
Karoy Lorentey
033bf17f9d
_BString: Add UTF-8 and UTF-16 index rounding tests
...
UTF-16 index rounding is a semantic mess; the behavior is emulating
the stdlib, and it seems far more useful than if we went with a
semantically consistent definition.
2023-03-20 13:12:13 -07:00
Karoy Lorentey
22113290f1
_BString: Adjust substring mutation test to actually exercise Unicode weirdness
2023-03-20 13:12:13 -07:00
Karoy Lorentey
05f8f9b887
_BString: Modernize tests
2023-03-20 13:12:12 -07:00