699 Commits
Author SHA1 Message Date
FourteenBrush cce574cfc4 Add invalid array bound trap test 2026-04-13 14:51:51 +02:00
andzdroid f123fb1e91 encoding/cbor: fix order-dependent partial unmarshals 2026-03-15 13:20:57 +00:00
Shane Shrybman 5a82f06ba1 Add virtual arena tests for bug #5821 2026-03-10 11:12:45 -04:00
StudebakerGuy c4f5f9e55a Add files needed to generate unicode tables
This commit adds the directory `/core/assets/UCD/`. This directory
contains three files; `PropList.txt`, `UnicodeData.txt`, and `license.txt`.
These files are from the Unicode Database (UCD). The first two  are used to
generate tables for `core/unicode`. The third is the license that
covers the files that make up the UCD.

These files are from Unicode version 17.0.0. The latest versions may be
found ad [ucd](https://www.unicode.org/Public/UCD/latest/ucd/).
2026-03-09 19:48:07 +01:00
Yawning Angel 86b629ba84 core/crypto/argon2id: Initial import 2026-03-04 21:29:55 +09:00
Yawning Angel 058bd9a914 core:crypto/_blake2: Cleanups and fixes
The fixes apply to "use it as a MAC" which was not part of the
documented/exposed API.  It now is, and is covered by the self-test
routines from the RFC.
2026-03-04 21:22:56 +09:00
Jeroen van Rijn a0b9d710f7 Merge pull request #6336 from bplu4t2f/master
Fix MultiByteToWideChar usage in utf8_to_wstring_buf
2026-02-28 13:16:39 +01:00
miningape 4ec443df9b fix: strings.substring not returning end of range 2026-02-28 00:44:26 +01:00
Jeroen van Rijn 3c84305e38 [core:net] Make IPv6 resolution test failure informative instead. 2026-02-27 21:35:36 +01:00
Laytan Laats f61a216c9f nbio: put clearing of list nodes in proper place and simplify test 2026-02-27 21:04:43 +01:00
bplu4t2f 1c09a2be55 Add tests for utf8_to_utf16_alloc, utf8_to_wstring_alloc 2026-02-26 20:49:36 +01:00
bplu4t2f 572bebd031 Add tests for win32 string conversion functions 2026-02-26 18:11:48 +01:00
andzdroid 334a554de3 nbio: fix op re-use 2026-02-26 00:31:12 +00:00
bplu4t2f 730f417ecb Fix MultiByteToWideChar usage in utf8_to_wstring_buf 2026-02-25 23:02:14 +01:00
George Potoshin 5335bdbe34 [core:text/regex] Follow up to fix #6323 and add test case. As was said in the issue discussion I had suspicion that there may be a sibling bug in .Assert_Non_Word_Boundary implementation and I was able to confirm that with re.findall(rB", ") python code. Odin implementation outputed an empty string wherase python gave "'". That is the same bug related to incorrect logic on string ends. This commit makes implementation of those 2 instructions cleaner and adds a test case. 2026-02-25 14:33:09 +01:00
Jeroen van Rijn 3bcddb43c7 missing , 2026-02-25 10:55:30 +01:00
Jeroen van Rijn e696073d7b [core:text/regex] Fix #6323 and add test case
Thanks to @GPotoshin for the fix.
2026-02-25 10:49:27 +01:00
Jeroen van Rijn 4321efacc3 [core:container/priority_queue] Add example and tests 2026-02-24 13:05:26 +01:00
Jeroen van Rijn 82b3917300 Update unicode.xml to 17 2026-02-21 14:02:41 +01:00
Jeroen van Rijn 98b65f2c2e Update unicode generator + test 2026-02-21 01:54:17 +01:00
Jeroen van Rijn be8c3a82b0 Tweak asset downloader output 2026-02-20 14:16:05 +01:00
Jeroen van Rijn 91d5b5539c Make download_assets.py less spammy. 2026-02-19 22:03:01 +01:00
Yawning Angel 7e7515d7d9 core/crypto/ecdsa: Add ECDSA support 2026-02-20 04:10:54 +09:00
Yawning Angel ffa6fc2a67 core/crypto/_weierstrass: Add scalar field inversion 2026-02-20 03:59:34 +09:00
Håkon Stormo 686cba8ca2 Fix to_string_hms_12 2026-02-19 02:32:00 +01:00
Jeroen van Rijn 69831da51f Vendor Yawning Angel's odin-wycheproof into tests/crypto/wycheproof
Upstream test vectors from [wycheproof](https://github.com/C2SP/wycheproof) have been vendored into the [Odin test-assets](https://github.com/odin-lang/test-assets) repository, and will be downloaded and verified using `tests/core/download_assets.py`.
2026-02-16 19:00:43 +01:00
Jeroen van Rijn 5c95a48bc7 Clean up core:math/big
- Deprecate the u64/u32 implementation so we can use fewer nails and have an easier time of maintaining and optimizing the package going forward. The remaining implementation still works on 32-bit targets, it's just a smidge less efficient.

- Use only 1 nail instead of 4. The tests now run 3.5% faster as a result.

Future optimizations may including using fully packed backing (no nails) using `intrinsics.overflow_*` to handle borrow and carry safely.
2026-02-15 17:00:53 +01:00
Jeroen van Rijn 03a8526cf0 Add tests
Add tests for `core:container/xar` and `core:container/handle_map` (static + dynamic).
2026-02-15 14:54:31 +01:00
Jeroen van Rijn c66059dd03 One more test, unicode path elements 2026-02-15 13:00:34 +01:00
Jeroen van Rijn 95c82e0f76 Fix #6279
If the replacement rune was multi-byte, `os.replace_path_separators` would silently fail to replace anything.

Now it properly handles non-ASCII separator. Additionally added a fast path for when all runes in the input path as well as the replacement separator are simple ASCII.

Test added.
2026-02-15 12:42:55 +01:00
Jeroen van Rijn 1af1beb248 Fix filepath.dir 2026-02-14 12:52:51 +01:00
Jeroen van Rijn 57653dd363 short_stem 2026-02-13 12:37:55 +01:00
Jeroen van Rijn faca11d593 Fix os.stem, os.short_stem. 2026-02-13 12:36:15 +01:00
Jeroen van Rijn 97683ae014 Simplify 2026-02-12 10:48:26 +01:00
Jeroen van Rijn 8366e7094a Fix up ABI name for core:os and core:os/old 2026-02-09 16:27:53 +01:00
Jeroen van Rijn e7dbabf668 core:os -> core:os/old && core:os/os2 -> core:os 2026-02-09 15:50:21 +01:00
Jeroen van Rijn 8ed264680b Remove all core:os imports from JS targets
Fix `local_tz_name` on FreeBSD.
2026-02-09 15:07:27 +01:00
Jeroen van Rijn 2c39af1581 Fix 2026-02-08 13:06:19 +01:00
Jeroen van Rijn 13228c14e8 More conflicts during rebase 2026-02-08 13:04:44 +01:00
Jeroen van Rijn 5924fb448e Add tests for glob + match 2026-02-08 12:54:25 +01:00
Jeroen van Rijn 5d03da8365 Start of glob test 2026-02-08 12:54:24 +01:00
Jeroen van Rijn 691dc44719 Add glob + match to os2 2026-02-08 12:51:29 +01:00
Jeroen van Rijn af57035fd6 tests/core/io -> os2 2026-02-08 12:50:23 +01:00
Jeroen van Rijn f63c209478 Convert core:encoding/hxa 2026-02-08 12:42:26 +01:00
Jeroen van Rijn 1cbd60f40e Reenable core:encoding/ini tests 2026-02-08 12:42:25 +01:00
Jeroen van Rijn 270df36468 Merge pull request #6213 from Yawning/feature/more-secec
crypto: More core:crypto
2026-02-03 15:45:57 +01:00
Yawning Angel eadd5f789c core/crypto/ecdh: Add secp384r1 2026-02-03 18:48:07 +09:00
Yawning Angel 64ce2bdf0e core/crypto/_weierstrass: Add secp384r1 2026-02-03 18:48:07 +09:00
Laytan Laats 0a05ff05a3 nbio: fix send/recv buffer logic 2026-01-30 23:37:31 +01:00
Yawning Angel c35b49bf60 core/crypto/ecdh: Initial import 2026-01-28 22:50:27 +09:00