Karoy Lorentey
e10396bb20
[Heap] Convert min() and max() to properties
2023-11-14 18:52:27 -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
c44d56f4c8
Merge pull request #327 from lorentey/heap-better-bulk-insert
...
[Heap] insert(contentsOf:) Switch to Floyd’s if we’re inserting too many items
2023-11-14 17:56:22 -08:00
Karoy Lorentey
e8699cc57d
Merge pull request #322 from kati-kms/fix/document-typo
...
Fix typos: OrderedSet Documentation
2023-11-14 17:41:06 -08:00
Karoy Lorentey
f0f06ed4ec
Merge pull request #326 from lorentey/heap-doc-improvements
...
[Heap] Improve type-level doc comment
2023-11-14 16:40:29 -08:00
Karoy Lorentey and Stephen Canon
19ec155f60
Update Sources/HeapModule/Heap.swift
...
Co-authored-by: Stephen Canon <stephentyrone@gmail.com >
2023-11-14 11:06:05 -08:00
Karoy Lorentey
069dd4e5df
[Heap] insert(contentsOf:) Switch to Floyd’s if we’re inserting too many items
2023-11-13 21:28:24 -08:00
Karoy Lorentey
7686af1555
[Heap] Improve type-level doc comment
2023-11-13 18:33:43 -08:00
kati-kms
b72a6cfd93
Fix typos: OrderedSet.swift DocC
2023-11-10 15:38:16 +09:00
kati-kms
5193e405bd
Fix typos: OrderedSet.md Documentation
2023-11-10 15:38:16 +09:00
Karoy Lorentey
4a1d92ba85
Merge pull request #320 from lorentey/remove-unnecessary-typealiases
...
[RopeModule] Remove unnecessary typealiases
2023-10-18 18:24:58 -07:00
Karoy Lorentey
33f23b6a06
[RopeModule] Remove unnecessary typealiases
...
These render the emitted .swiftinterface unusable when the module is built with library evolution enabled.
2023-10-18 17:57:00 -07:00
Karoy Lorentey
3c8cfc7b07
Merge pull request #319 from lorentey/update-build-configs
...
[CMake, Xcode] Update configurations for alternate build systems
2023-10-18 16:22:43 -07:00
Karoy Lorentey
bd1a622735
[CMake, Xcode] Update buid configurations
2023-10-18 15:54:07 -07:00
Karoy Lorentey
9436aab34c
[HashTreeCollections] _StorageHeader.swift → _HashNodeHeader.swift
2023-10-18 15:52:05 -07:00
Karoy Lorentey
a067b75fb8
Merge pull request #318 from lorentey/enable-stable-ropes
...
[RopeModule] Fix issues in Swift's ABI stable dialect
2023-10-18 15:44:30 -07:00
Karoy Lorentey
de2c8a9086
[RopeModule] Allow building with library evolution enabled
...
rdar://114659667
2023-10-18 14:22:12 -07:00
Karoy Lorentey
a902f1823a
Merge pull request #314 from lorentey/fix-c++-benchmarks
...
[1.0][benchmark] Update std::function syntax for current C++
1.0.5
2023-10-02 21:27:26 -07:00
Karoy Lorentey
d30ebedb30
Merge pull request #315 from lorentey/fix-test-warning
...
[1.0][test] Fix typename shadowing warning in Swift 5.9
2023-10-02 21:27:14 -07:00
Karoy Lorentey
9efa05c583
[benchmark] Update std::function syntax for current C++
2023-10-02 21:10:12 -07:00
Karoy Lorentey
bf742617f3
[test] Fix typename shadowing warning in Swift 5.9
2023-10-02 21:09:11 -07:00
Karoy Lorentey
873690c60e
Merge pull request #302 from lorentey/fix-descriptions
...
Fix CustomStringConvertible/CustomDebugStringConvertible conformances
2023-07-07 11:36:06 -07: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
9eece74f39
Merge pull request #297 from hassila/patch-2
...
Update TreeSet.md
2023-06-22 13:23:45 -07:00
Joakim Hassila
b3d089e37d
Update TreeSet.md
...
Fix typo
Replace this paragraph with a description of your changes and rationale. Provide links to an existing issue or external references/discussions, if appropriate.
2023-06-21 09:42:04 +02:00
Karoy Lorentey
d8003787ef
Merge pull request #291 from lorentey/rope-fix-find-at-end
...
`Rope.find` returns a bogus remainder for the end position
2023-06-02 17:49:14 -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
c52a1fbf05
Merge pull request #290 from lorentey/remove-range-from-empty-rope
...
Rope: Fix trap when replaceSubrange is called on an empty rope
2023-06-02 13:57:53 -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
d93d1dccc1
Merge pull request #285 from lorentey/fix-code-signing
...
[Xcode] Set a code sign identity in the Xcode project
2023-05-18 19:20:46 -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
523a409ba4
Merge pull request #287 from lorentey/fix-BitSet-isEqualSet
...
[BitSet] Fix a thinko in BitSet.isEqualSet
2023-05-18 19:09:33 -07:00
Karoy Lorentey
7de462edfc
Merge pull request #286 from lorentey/silence-32bit-warning
...
[CollectionUtilities] Silence a warning on 32 bit platforms
2023-05-18 18:59: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
0c002200bb
[CollectionUtilities] Silence a warning on 32 bit platforms
...
It turns out `UInt.bitWidth` is getting too eagerly inlined, so conditions based on it trigger spurious “code will never be executed” warnings. Silence those by switching to looking at `MemoryLayout<UInt>`, which doesn’t get turned into a constant *that* early.
2023-05-18 18:32:41 -07:00
Karoy Lorentey
9befd06185
[Xcode] Set a code sign identity (so that we default to ad-hoc signatures)
2023-05-18 18:18:24 -07:00
Karoy Lorentey
992e0f3446
Update configuration for the Swift Package Index
2023-04-24 13:47:32 -07:00
Karoy Lorentey
3e4a8b4dff
Merge branch 'release/1.0' into release/1.1
...
# Conflicts:
# .gitignore
# Package.swift
# Sources/Collections/Collections.docc/Collections.md
# Sources/Collections/Collections.docc/Extensions/Deque.md
# Sources/Collections/Collections.docc/Extensions/OrderedSet.UnorderedView.md
# Sources/Collections/Collections.docc/Extensions/OrderedSet.md
# Sources/DequeModule/DequeModule.docc/DequeModule.md
# Sources/DequeModule/DequeModule.docc/Extensions/Deque.md
# Sources/OrderedCollections/HashTable/_HashTable+UnsafeHandle.swift
# Sources/OrderedCollections/OrderedCollections.docc/Extensions/OrderedSet.UnorderedView.md
# Sources/OrderedCollections/OrderedCollections.docc/Extensions/OrderedSet.md
# Sources/OrderedCollections/OrderedCollections.docc/OrderedCollections.md
# Sources/OrderedCollections/OrderedDictionary/OrderedDictionary.swift
# Sources/OrderedCollections/OrderedSet/OrderedSet.swift
# Sources/OrderedCollections/Utilities/_UnsafeBitset.swift
# Utils/generate-docs.sh
2023-04-24 13:45:55 -07:00
Karoy Lorentey
2ca40e2a65
Merge pull request #280 from lorentey/minor-rope-updates
...
[Rope] remove(at:): Fix assertion when removing the last item creates a deficiency
2023-04-17 17:29:18 -07:00
Karoy Lorentey
dce7b156e7
[Rope] remove(at:): Fix assertion when removing the last item creates a deficiency
2023-04-17 17:20:07 -07:00
Karoy Lorentey
9bb319f336
Merge pull request #279 from lorentey/minor-rope-updates
...
Minor rope updates
2023-04-17 12:08:03 -07:00
Karoy Lorentey
b0fe7ca8ba
[Rope] replaceSubrange: take a sequence, not a collection
2023-04-14 14:38:30 -07:00
Karoy Lorentey
8d7c630712
[Xcode] Enable randomized testing
2023-04-13 19:36:28 -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
1925ed3001
[Rope] update(at:by:): Invalidate indices
...
Calling this function is supposed to invalidate all indices other than
the input index — so let’s do that.
2023-04-12 17:55:19 -07:00