aboutsummaryrefslogtreecommitdiff
path: root/tests/core/slice
Commit message (Collapse)AuthorAgeFilesLines
* Add `#+feature dynamic-literals` to testsgingerBill2025-01-051-0/+1
|
* Add linear_search_reverse and linear_search_reverse_procNia2024-09-251-0/+35
|
* Check for zero-length slices in `slice.equal`Feoramund2024-09-031-1/+31
|
* Merge pull request #3767 from Feoramund/use-rng-context-in-test-runnerJeroen van Rijn2024-06-191-4/+2
|\ | | | | Setup `context.random_generator` in test runner
| * Keep `-vet` happyFeoramund2024-06-151-1/+1
| |
| * Use test's random generatorFeoramund2024-06-151-4/+2
| | | | | | | | | | This removes the `create` calls when a test was only setting up a generator, and it replaces them with `reset` when run in a loop.
* | Add tests for `slice.unique` and `slice.unique_proc`Jeroen van Rijn2024-06-161-1/+61
|/
* Merge pull request #3764 from Feoramund/test-runner-fixesgingerBill2024-06-151-1/+2
|\ | | | | Fix half-implemented features in the test runner
| * Prefer `log.error` over `fail_now` in this caseFeoramund2024-06-151-1/+2
| |
* | Update `core:math/rand` to use `context.random_generator` and remove `rand.Rand`gingerBill2024-06-151-5/+7
|/
* Add test for `slice.permute`Feoramund2024-06-091-1/+31
|
* Port `tests\core\slice`Jeroen van Rijn2024-06-021-97/+39
|
* Used `strings.builder_reset` instead of `clear` for the string builderHector2023-11-251-4/+6
|
* Updated to tabs and used provided test methods.Hector2023-11-251-33/+37
|
* Binary search improvementsHector2023-11-251-0/+57
| | | | | | | | Modified the algorithm so that the index is either the location of the element if found or the index at which to insert the element to maintain sorted order. Also added some tests to verify the above claim.
* cleanup testsPhil2022-09-011-0/+7
|
* add sort_by_indices overload and testPhil2022-09-011-0/+16
|
* add tests for sort_by_indicesPhil2022-09-011-0/+65
|
* cleanup slice sorting with indices changesPhil2022-09-011-1/+4
|
* have sort_with_indices allocate. Add a couple convenience procs for using ↵Phil2022-09-011-10/+4
| | | | the indices result to sort other slices.
* Add test for core:slice.Jeroen van Rijn2022-09-011-0/+97