Karoy Lorentey
6c31865359
[test] Add tests for Rope.join’s copy-on-write behavior
2024-05-31 16:59:25 -07:00
Dimitris Apostolou
7539583245
Fix typos
...
# Conflicts:
# Sources/SortedCollections/BTree/_BTree+BidirectionalCollection.swift
# Sources/SortedCollections/BTree/_BTree+UnsafeCursor.swift
# Sources/SortedCollections/BTree/_BTree.Builder.swift
# Sources/SortedCollections/BTree/_BTree.swift
# Sources/SortedCollections/BTree/_Node.Splinter.swift
# Sources/SortedCollections/BTree/_Node.Storage.swift
# Sources/SortedCollections/BTree/_Node.UnsafeHandle+Insertion.swift
# Sources/SortedCollections/BTree/_Node.swift
# Tests/SortedCollectionsTests/BTree/Node+Join Tests.swift
2024-02-06 15:52:26 -08:00
Karoy Lorentey
ffa4a58bc1
Update remaining copyright notices
2024-02-02 16:20:22 -08:00
Karoy Lorentey
374c3a4805
Migrate rope tests to CollectionsTestSupport assertions
2023-06-01 20:23:49 -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
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
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
b8927d819b
BigString: Flesh out views, make them consistent with _BString
2023-03-20 13:12:13 -07:00
Karoy Lorentey
8c1740ad28
_Rope.Index: Merge height into UInt64 storage.
...
This leaves 56 bits for path data, which should still be plenty.
(We want to allow big strings to grow to 2^48 UTF-8 code units, to
match the standard String; however, there is no practical need to
support any more, and even that is a stretch.)
Add tests to verify that the tree capacity matches expectations
in Release builds. (In Debug builds, we limit the maximum node size,
which drastically reduces capacity. This is okay.)
2023-03-20 13:12:09 -07:00
Karoy Lorentey
8c8cb5622b
Restrict BIgString and _BString to Swift 5.8 and macOS 13.3 /iOS 16.4/etc
...
These types heavily rely on stdlib functionality that ships in
Swift 5.8; they do not run correctly on earlier releases.
2023-03-20 13:12:09 -07:00
Karoy Lorentey
eabd941799
Add some operations taking subsequences
2023-03-20 13:12:07 -07:00
Karoy Lorentey
150a165d73
Add experimental rope implementation
2023-03-20 13:11:21 -07:00