Yawning Angel
cf7d705c1f
core/crypto/_sha3: Fix edge case in cSHAKE bytepad
...
If the domain separator happens to be exactly the rate, we would
previously incorrectly add another rate-bytes of 0s.
2024-09-30 21:50:18 +09:00
Nia
3337d6b264
Add linear_search_reverse and linear_search_reverse_proc
2024-09-25 16:41:55 +03:00
Simon Cruanes
a1349d8776
fix vet warnings
2024-09-22 00:08:07 -04:00
Simon Cruanes
32e13f17ae
Apply suggestions from code review
...
Co-authored-by: flysand7 <yyakut.ac@gmail.com >
2024-09-21 21:08:35 -04:00
Simon Cruanes
d08b3d3b82
add tests for time.time_to_rfc3339
2024-09-21 00:48:39 -04:00
gingerBill
327ca2ab71
Merge pull request #4261 from laytan/net-bound-endpoint
...
net: add `bound_endpoint` procedure
2024-09-19 12:53:42 +01:00
gingerBill
6bbeb0a243
Merge pull request #4203 from karl-zylinski/file-tags-without-comments
...
Make tags use #+ syntax instead of //+
2024-09-19 12:36:43 +01:00
Laytan Laats
80cc2f5416
fix it more
2024-09-17 23:28:34 +02:00
Laytan Laats
9973e0255c
fix error interrupt error check
2024-09-17 23:19:20 +02:00
Laytan Laats
652557bfcd
net: add bound_endpoint procedure
2024-09-17 22:22:19 +02:00
Karl Zylinski
29fedc1808
Changed some recently added //+ usages to #+ and also fixed some //+ usages in some code generators.
2024-09-17 19:39:48 +02:00
Karl Zylinski
093ade0504
Merge branch 'master' into file-tags-without-comments
2024-09-17 19:36:17 +02:00
pkova
aa25714d43
Remove comment from core sync tests now that they're fixed
2024-09-17 02:11:41 +03:00
pkova
fff99c726e
Fix core sync test deadlock on darwin
2024-09-17 01:52:51 +03:00
gingerBill
68619f299e
Merge pull request #4209 from flysand7/core-mem
...
[core/mem]: Document, refactor, reformat!
2024-09-16 17:35:19 +01:00
Feoramund
16ef59700b
Check for EINTR in sys/posix test
2024-09-15 23:58:03 -04:00
Karl Zylinski
19f0127e55
Moved all packages in core, base, vendor, tests and examples to use new #+ file tag syntax.
2024-09-14 18:27:49 +02:00
Feoramund
7f7cfebc91
Add tests for core:sync and core:sync/chan
2024-09-11 08:39:38 -04:00
Feoramund
074314b887
Fix data race in test_core_flags
2024-09-10 14:52:20 -04:00
flysand7
167ced8ad1
[mem]: Don't use named params for dynamic pool in tests
2024-09-08 18:52:55 +11:00
Laytan
1ab0745ca8
Merge pull request #4212 from karl-zylinski/fix-build-tags
...
Fix build tags that use ! multiple times on one line.
2024-09-07 22:18:29 +02:00
Karl Zylinski
8c636ac37b
Fix build tags that use ! multiple times on one line. Those don't actually do anything since build tags use OR within the line. So something like //+build !windows, !linux would actually build on both linux and windows. What was intended in all these cases was probably AND, which you get by splitting them into separate lines.
2024-09-07 22:02:17 +02:00
Jeroen van Rijn
c4c2282595
Update 4210 test to use unaligned_load.
2024-09-07 14:05:56 +02:00
Jeroen van Rijn
d2202416d2
Add test for #4210
2024-09-07 13:43:19 +02:00
laytan
a99e57c62c
bytes: fix last_index_byte off-by-one
2024-09-05 13:30:46 +02:00
Jeroen van Rijn
c6b551d2c3
Merge pull request #4194 from Feoramund/update-bit-array
...
Update `bit_array`
2024-09-03 23:42:27 +02:00
Feoramund
2f1228baa0
Add tests for Bit_Array
2024-09-03 17:23:42 -04:00
Jeroen van Rijn
645207b8b0
Merge pull request #4192 from laytan/strings-substring-rune-wise
...
strings: add `substring`, `substring_to` and `substring_from`
2024-09-03 22:47:56 +02:00
Laytan Laats
597ba796b7
strings: add substring, substring_to and substring_from
2024-09-03 21:13:35 +02:00
Jeroen van Rijn
996175753c
strings.cut without allocation.
2024-09-03 19:02:40 +02:00
gingerBill
6ed4bfeba1
Merge pull request #4186 from Feoramund/fix-4177
...
Return false if `Small_Array` can't append multiple elements
2024-09-03 14:25:15 +01:00
gingerBill
99a3e9a510
Merge pull request #4187 from Feoramund/fix-slice-equal
...
Check for zero-length slices in `slice.equal`
2024-09-03 14:24:45 +01:00
Feoramund
806c87d71d
Check for zero-length slices in slice.equal
2024-09-03 02:48:26 -04:00
Feoramund
309953e0f2
Return false if Small_Array can't append multiple elements
...
Fixes #4177
2024-09-03 01:14:17 -04:00
Feoramund
f6f2c67f37
Add time.time_to_datetime
2024-09-03 00:55:09 -04:00
Laytan Laats
8e855155fd
fix bad import
2024-08-31 02:38:07 +02:00
gingerBill
773703bc83
Merge pull request #4009 from thetarnav/file-tag-parser
...
Add a file tag parser to core:odin/parser
2024-08-30 11:58:18 +01:00
Damian Tarnawski
655610ec87
Satisfy vet
2024-08-29 23:06:50 +02:00
Damian Tarnawski
a28d574272
Add and test match_build_tags
2024-08-29 23:02:49 +02:00
Damian Tarnawski
f93779d425
Parse build_project_name as [][]string
2024-08-29 22:08:01 +02:00
Damian Tarnawski
a10f988020
Move some types to runtime, use reflection instead of lut
2024-08-29 21:12:33 +02:00
Damian Tarnawski
92821300e4
Add a file tag parser to core:odin/parser
2024-08-29 20:52:27 +02:00
Laytan Laats
cca385209b
Remove double close
2024-08-28 19:53:20 +02:00
Laytan Laats
fe2d256468
Properly close the temporary files in io tests
2024-08-28 19:53:20 +02:00
Feoramund
7fa2e56cd9
Add io tests for bufio streams
2024-08-28 19:53:20 +02:00
Feoramund
24a53c246f
Make sure seek succeeds in io.Limited_Reader test setup
2024-08-28 19:53:20 +02:00
Feoramund
b11fa90ed2
Test empty slice usage in io procs
2024-08-28 19:53:20 +02:00
Feoramund
1cd5cbb0e4
Test io unexpected pointer movement
2024-08-28 19:53:20 +02:00
Feoramund
8b40be50b9
Update core:io tests
...
- Relax return value requirements on errors. Only the error is checked,
as there are multiple conflicting return styles throughout the `os`
API.
Some return the error along with `0`, `-1`, or another value. This can
be smoothed out later.
- Test `os2` files now.
- No longer test streams after closing; this is considered similar to a
use-after-free in `os2`.
2024-08-28 19:53:20 +02:00
Feoramund
5b9e9fb822
Add test suite for core:io
2024-08-28 19:53:20 +02:00