Commit Graph

412 Commits

Author SHA1 Message Date
gingerBill
4824050c99 Merge pull request #3792 from Feoramund/core-uuid
Add `core:encoding/uuid`
2024-06-28 09:49:23 +01:00
Jeroen van Rijn
c33bf7673f Fix core:math/fixed. 2024-06-26 20:12:55 +02:00
Feoramund
8a4a3ed66e Change how Time is constructed in uuid 2024-06-22 18:21:32 -04:00
Feoramund
5a75cac5b9 Add API for creating custom version 8 UUIDs 2024-06-22 18:21:32 -04:00
Feoramund
e9b882be05 Add vendor-specific version 8 UUID generation (hashing) 2024-06-22 18:21:32 -04:00
Feoramund
859cbf7d72 Test if v1 and v6 UUID node is set correctly 2024-06-22 18:21:32 -04:00
Feoramund
d559feb701 Add uuid test for timestamps 2024-06-22 18:21:32 -04:00
Feoramund
f6344577d3 Add UUID sorting tests 2024-06-22 18:21:32 -04:00
Feoramund
95a9c9b016 Fix indentation 2024-06-22 18:21:32 -04:00
Feoramund
9b3a104640 Add buffer-based to_string to uuid package 2024-06-22 18:21:32 -04:00
Feoramund
9b265b2309 Improve time-related API in uuid package
- Let timestamps be specified by the user.
- Change `time_v*` to `raw_time_v*` and implement an API that returns
  timestamps from the `time` package.
2024-06-22 18:21:32 -04:00
Feoramund
fcdba334ea Require CSPRNG in UUID generation where applicable 2024-06-22 18:21:31 -04:00
Feoramund
3aa232a894 Move v3 and v5 UUID procs to uuid/legacy 2024-06-22 18:21:31 -04:00
Feoramund
9866b54d59 Add version 6 UUID generation 2024-06-22 18:21:31 -04:00
Feoramund
525bfca4ef Add version 1 UUID generation 2024-06-22 18:21:31 -04:00
Feoramund
4cfbd83b10 Add version 7 UUID generation 2024-06-22 18:21:31 -04:00
Feoramund
6da99b888a Make UUID Identfier only a distinct byte array 2024-06-22 18:21:31 -04:00
Feoramund
4dacddd85e Add core:encoding/uuid 2024-06-22 18:21:27 -04:00
gingerBill
23351ca8be Merge pull request #3137 from laytan/show-defineable
Add flags to show/export defineable values and warn if a -define is unused in the project
2024-06-20 11:45:52 +01:00
Feoramund
e620645a03 Measure East_Asian_Width during grapheme decoding 2024-06-19 22:35:36 -04:00
Maurizio M. Gavioli
53755824fb Separate the I18N calls for immutable strings and for pluraliseable strings.
Also update tests.
2024-06-19 10:10:26 +02:00
Jeroen van Rijn
7064166da2 Merge pull request #3767 from Feoramund/use-rng-context-in-test-runner
Setup `context.random_generator` in test runner
2024-06-19 09:51:13 +02:00
Feoramund
e3f4772d01 Fix removal of temporary file in core:flags test 2024-06-18 11:06:49 -04:00
Feoramund
6b25d17ef9 Add missing imports to core test suite 2024-06-18 10:38:43 -04:00
gingerBill
02cd53d42c Merge pull request #3700 from Feoramund/core-flags
Add package `core:flags`
2024-06-18 12:48:57 +01:00
Feoramund
9e4899d35c Add tests for decode_grapheme_clusters 2024-06-17 21:57:32 -04:00
Jeroen van Rijn
0268be1925 Add tests for slice.unique and slice.unique_proc 2024-06-16 13:41:25 +02:00
Feoramund
8b31cddaba Keep -vet happy 2024-06-15 15:49:05 -04:00
Feoramund
aab5338134 Add tests for core:math/rand 2024-06-15 15:49:05 -04:00
Feoramund
1a52cf1f1c Use test's random generator
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.
2024-06-15 15:49:05 -04:00
gingerBill
4c7469a264 Merge pull request #3764 from Feoramund/test-runner-fixes
Fix half-implemented features in the test runner
2024-06-15 16:19:58 +01:00
Feoramund
f353adc7fb Prefer log.error over fail_now in this case 2024-06-15 10:53:21 -04:00
gingerBill
1c940e3968 Remove dead variable 2024-06-15 15:53:16 +01:00
gingerBill
c97ffbecbc Fix rand in container tests 2024-06-15 15:50:35 +01:00
gingerBill
7ec17ecf98 Update core:math/rand to use context.random_generator and remove rand.Rand 2024-06-15 15:33:24 +01:00
Feoramund
76575e834b Raise error on spaced UNIX-style flag with no value 2024-06-15 00:24:59 -04:00
Feoramund
c3acdeb310 Add -- parsing to UNIX-style core:flags
This will allow a user to indicate all arguments after `--` are parsed
into the variadic array.
2024-06-14 23:59:01 -04:00
Feoramund
abe5c2ca83 Add test for %w 2024-06-12 21:07:15 -04:00
Jeroen van Rijn
2fe961cbcd Fold XML attribute whitespace. 2024-06-12 13:30:00 +02:00
Jeroen van Rijn
ebadff555d Update XML reader to normalize whitespace, part 1. 2024-06-12 12:52:48 +02:00
Feoramund
76292c8ed5 Forbid all BSDs from running core:net tests
`net` is not yet implemented on them.
2024-06-11 03:55:41 -04:00
Feoramund
fe5c278fca Add test for core:math/big permutation & combination procs 2024-06-09 20:42:09 -04:00
Feoramund
f0d65112b8 Rename math/big test package
This is in line with the other tests, and it does not seem to affect
building the library.
2024-06-09 20:42:07 -04:00
Feoramund
047b505836 Add test for slice.permute 2024-06-09 16:15:43 -04:00
Jeroen van Rijn
5be7d8e32d Clean up PNG code. 2024-06-09 17:59:59 +02:00
Jeroen van Rijn
fc2ba81be0 Merge branch 'master' into png_cleanup 2024-06-09 17:13:43 +02:00
Jeroen van Rijn
3c7e2659ac Merge branch 'master' into tlsf-allocator 2024-06-09 16:42:23 +02:00
Jeroen van Rijn
d2a2c1e74e Image: Add improved blending method and test it. 2024-06-09 16:10:06 +02:00
Feoramund
5c8f78a25a Add *.bmp to core tests .gitignore 2024-06-08 16:43:45 -04:00
Jeroen van Rijn
575e5a255b Merge pull request #3704 from Feoramund/fix-fmt-p-verb
Fix `%p` pointers not printing leading `0x`
2024-06-07 23:00:29 +02:00