Commit Graph

734 Commits

Author SHA1 Message Date
Jeroen van Rijn
a1be1b63d5 [core:hash] Add CCITT CRC-16 2025-10-21 16:33:07 +02:00
Jeroen van Rijn
ee93f48729 core:math/bits: Finish docs, add bitfield_extract + bitfield_insert test. 2025-10-14 23:30:38 +02:00
Jeroen van Rijn
347eae3a66 core:math/bits: Add docs + tests for rotate_left* and log2 2025-10-14 23:30:38 +02:00
Jeroen van Rijn
ad1cf25352 Increase timeout for posix.test_pthreads. 2025-10-10 13:35:32 +02:00
Jeroen van Rijn
aec7d6480b Package lines for base32, move its tests to tests" 2025-10-09 15:27:53 +02:00
Harold Brenes
0fdac0bd8c Fix test inet_pton call in test_arpa_inet 2025-09-29 20:29:34 -04:00
gingerBill
1222d40d39 Merge pull request #5691 from rationalcoder/master
Fix out-of-band allocations in dynamic arenas
2025-09-26 14:21:52 +01:00
gingerBill
51f79724ed Merge pull request #5686 from thetarnav/zero-small-array-resize
Zero small array resize
2025-09-26 14:16:54 +01:00
Tohei Ichikawa
654c5b2c06 Fix memory leaks in type inference test 2025-09-24 21:25:25 -04:00
Tohei Ichikawa
3c1238991b Fix test_proc_group_type_inference.odin 2025-09-24 18:52:48 -04:00
rationalcoder
710533975e Fix out-of-band allocations in dynamic arenas 2025-09-16 16:31:10 -05:00
Tohei Ichikawa
403ca2fb2e Improve type inferencing of literals when calling proc groups 2025-09-15 20:40:20 -04:00
Damian Tarnawski
2c3d5fe456 Add small array resize tests 2025-09-15 14:50:33 +02:00
Jeroen van Rijn
572b26a846 Expand grayscale JPEGs to RGB(A)
And handle grayscale jpeg example file in test suite.
2025-09-09 17:13:21 +02:00
Jeroen van Rijn
7b3ca701e0 Implement .alpha_add_if_missing for JPEG 2025-09-09 14:51:16 +02:00
Jeroen van Rijn
737c87a726 Optionally save BMP 2025-09-09 14:12:48 +02:00
Jeroen van Rijn
dd9fceaae1 Make progressive JPEGs return a proper error
Add progressive JPEG file to test suite and test that loading it returns the expected `Unsupported_Frame_Type` error.

This JPEG variant will hopefully be supported in the future, but we should at least return an error rather than use `unsupported()`.
2025-09-09 13:53:43 +02:00
Jeroen van Rijn
fa36c6a5f5 Add JPG test assets to .gitignore 2025-09-08 18:19:21 +02:00
Jeroen van Rijn
2de4918fb3 Add basic test for JPG using Odin emblem 2025-09-08 18:18:08 +02:00
Damian Tarnawski
ce0cf7076c Add missing test attr and don't zero memory when reserve already did 2025-08-26 13:03:26 +02:00
gingerBill
83a78d5d28 Merge branch 'master' into soa-resize-zero-memory 2025-08-26 11:26:15 +01:00
Damian Tarnawski
8a894c6ce6 More soa tests 2025-08-24 15:09:08 +02:00
Damian Tarnawski
2a6dfd2545 Avoid overlap issues when correcting memory after resize in _reserve_soa 2025-08-23 16:55:12 +02:00
Damian Tarnawski
18a2980d26 Zero existing memory when using resize_soa (fixes #5614) 2025-08-23 14:28:25 +02:00
Damian Tarnawski
05706864b7 Support using allocator resize in _reserve_soa (fixes #5615) 2025-08-23 12:55:07 +02:00
gingerBill
a0462aa8d7 Fix test for global procedure initialization 2025-08-08 12:49:24 +01:00
gingerBill
414b1059a8 Fix typo 2025-08-08 12:36:56 +01:00
gingerBill
d381d0ece4 Fix more procedure to be contextless 2025-08-08 12:33:34 +01:00
gingerBill
e049dde582 Fix tests for UTF-16 strings 2025-08-02 13:01:58 +01:00
gingerBill
5aec40e3e0 Remove unneeded uses of intrinsics.constant_utf16_cstring 2025-08-02 12:55:05 +01:00
Jeroen van Rijn
3a7e4873cd Fix #5498
Also:
- Expands `tests/core/hash`
- Fixes bug found in `#hash(s, "murmur64")`
2025-07-25 12:00:24 +02:00
Feoramund
58f32cd690 Fix Linux-specific optimized test failure
The stack was not aligned as expected for `buddy_allocator_init` when
`-o:speed` was enabled, making this a test failure that only appeared
with optimizations enabled.

The data is now aligned specifically, as it should be.
2025-07-22 10:40:16 -04:00
FourteenBrush
d08ebf56e7 Add intrinsics.type_enum_is_contiguous test 2025-07-11 21:10:42 +02:00
Jeroen van Rijn
e89abd006f Fix #5452 2025-07-11 15:29:27 +02:00
Jeroen van Rijn
1fbc5641c0 Add to tests/internal
Turn repro code into a proper test, and delete superfluous files from Odin root.
2025-06-26 14:47:38 +02:00
Jeroen van Rijn
ebdf2e17f3 Remove altogether. 2025-06-24 16:37:30 +02:00
Jeroen van Rijn
da3ab6a609 Disable two tests under core/sys/posix. 2025-06-24 14:04:18 +02:00
Brad Lewis
fc58158fb7 Fix issue parsing vendor/stb/image with the core:odin/parser parser 2025-06-22 09:42:33 -04:00
Jeroen van Rijn
1903d7211e Fix early join after start. 2025-06-21 11:47:00 +02:00
Laytan Laats
30e1c96269 uncomment test, see if it's fixed 2025-06-20 22:15:21 +02:00
Laytan
7f648d11d6 Merge pull request #5329 from JackMordaunt/jfm-fix_chan_try_send
chan: fix try_send and send
2025-06-20 22:11:39 +02:00
Feoramund
7022ad8378 Add test for issue #3435 2025-06-19 19:54:12 -04:00
Jeroen van Rijn
69c0fe8305 Merge pull request #5344 from Feoramund/fix-2694
Review `core/mem/allocators.odin`
2025-06-19 18:35:17 +02:00
David Holland
0a45d4de0c Fix WAVEFORMATEX struct size (#5356)
* fix WAVEFORMATEX struct size
* fix size test for WAVEFORMATEX
* pack WAVEFORMATEXTENSIBLE
2025-06-18 12:25:09 +02:00
Feoramund
36762ce081 Add tests for new test failure expectation API 2025-06-16 11:25:32 -04:00
Jeroen van Rijn
1bd48df41f Disable test_try_select_raw_happy 2025-06-16 12:59:24 +02:00
Feoramund
0b2cf9a4ca Add a tiny sanity test for core:mem allocators 2025-06-15 14:29:30 -04:00
Feoramund
d7e98ba82a Add test for issue #2694 2025-06-15 12:34:15 -04:00
Jack Mordaunt
130b2dc36d tests/core/sync/chan: test concurrent send/close/recv
This test is designed to ensure that a call to send will always
correctly report whether the value was transmitted. If recv wins, a
close call should not be able to intercept the send thread.
2025-06-13 18:07:21 -03:00
Jack Mordaunt
760d8c1cdd core/sync/chan.send: return false if channel is closed while blocked
This commit makes send behave the same as recv: that the call will
return false if the channel is closed while a thread is waiting on the
blocking operation.

Prior logic would have send return true even if the channel was actually
closed rather than read from.

Docs adjusted to make this clear.
Tests added to lock in this behaviour.
2025-06-12 17:35:49 -03:00