Commit Graph
19 Commits
Author SHA1 Message Date
Sorin Cioban bdd6b79403 Use package access for heap test helper 2026-06-04 10:18:09 +01:00
Sorin Cioban 49887191bb Run heap node tests in release 2026-05-31 23:10:33 +01:00
Karoy Lorentey 1c69635852 Add SPDX-License-Identifier tags 2026-03-05 19:39:24 -08:00
Karoy Lorentey d9b09ecde8 Update copyright dates 2026-03-05 19:39:20 -08:00
Karoy Lorentey 333760bd9c [Heap] Add a test for throwing midway through removeAll(where:) 2025-05-15 21:39:54 -07:00
Dakshin Devanand c7c38028cd Add Heap.removeAll(where:) 2025-05-15 21:39:50 -07:00
Karoy Lorentey 4e48f1d0c6 [Heap] Add quick tests for consistent tie breaks 2025-05-15 17:34:14 -07:00
Karoy Lorentey ffa4a58bc1 Update remaining copyright notices 2024-02-02 16:20:22 -08:00
Karoy Lorentey 3c99c84286 [Heap] Clean up description
- Don’t print the type name
- Include some information identifying the heap instance
2024-02-02 16:20:21 -08:00
Karoy Lorentey e10396bb20 [Heap] Convert min() and max() to properties 2023-11-14 18:52:27 -08: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 c12b454da1 [Heap] Add missing Custom[Debug]StringConvertable conformances, review existing ones
Add `Custom[Debug]StringConvertible` conformance on `Heap`.
2022-10-20 17:14:52 -07:00
Karoy Lorentey 098495b4ab [Heap] Add more exhaustive tests for some critical paths 2022-10-13 14:52:06 -07:00
Karoy Lorentey 5f70117c55 [Heap] Start using _CollectionsTestSupport for testing 2022-10-12 16:30:52 -07:00
Karoy Lorentey 7138144f37 [Heap] Remove unnecessary testing APIs
We do not need a _raw initializer in the Heap implementation. The
heapify algorithm will not modify storage if it’s already in the
expected shape, so we can simply define one locally that double checks
that the order remains unchanged.
2022-10-12 16:01:23 -07:00
Karoy Lorentey 92d808d179 Merge branch 'heap-replace-extrema' into release/1.1 2022-10-12 15:23:17 -07:00
Karoy Lorentey 33b759b842 [Heap] PriorityQueueModule → HeapModule 2022-10-09 15:44:44 -07:00