aboutsummaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
| * Merge pull request #4605 from ↵gingerBill2025-01-081-0/+1
| |\ | | | | | | | | | | | | karl-zylinski/tracking-allocator-bad-free-default-to-crash Make tracking allocator default to crashing on a bad free instead of adding to bad_free_array
| | * Makes tracking allocator default to crashing on a bad free instead of add to ↵Karl Zylinski2024-12-211-0/+1
| | | | | | | | | | | | bad_free_array. The bad_free_array remains to not break old code. The new default behavior is implemented in a callback that you can override, there's a second provided callback that provides the old behavior where an element was added to bad_free_array. Rationale: Many people are just checking the allocation_map, but don't check the bad free array. Several examples throughout core that use tracking allocator don't check bad_free_array either, so people have been taught not to check it.
* | | Haiku: add posix testsavanspector2025-01-104-18/+54
|/ /
* | Merge pull request #4633 from spahnke/fix-matrix-adjugategingerBill2025-01-063-0/+200
|\ \ | | | | | | Fix matrix adjugate
| * | Add regression tests for inverse_transposeSebastian Pahnke2024-12-281-0/+9
| | |
| * | Add regression tests for matrix inverseSebastian Pahnke2024-12-281-0/+95
| | |
| * | Test symmetrySebastian Pahnke2024-12-281-9/+21
| | |
| * | Add tests for determinants because their calculation depends on the adjugateSebastian Pahnke2024-12-281-1/+7
| | |
| * | Add tests for glsl and hlsl variantsSebastian Pahnke2024-12-281-0/+20
| | |
| * | Add regression tests reproducing the issueSebastian Pahnke2024-12-283-0/+58
| | |
* | | Add `#+feature dynamic-literals` to testgingerBill2025-01-051-0/+1
| | |
* | | Add `#+feature dynamic-literals` to testsgingerBill2025-01-053-0/+3
| | |
* | | Add `#+feature dynamic-literals` to testsgingerBill2025-01-055-0/+5
| | |
* | | also add a test for non power of 2 N for good measurefleandro2025-01-031-0/+31
| | |
* | | fix N=1 and cleanup testsfleandro2025-01-031-20/+61
| | |
* | | fix test leaksfleandro2025-01-031-0/+1
| | |
* | | runtime: map_cell_index_static produced wrong results when the number of ↵fleandro2025-01-031-1/+25
|/ / | | | | | | elements per cell was a power of 2
* | Add regression test for #4553Gavin2024-12-051-0/+53
| | | | | | | | | | | | | | | | | | | | | | | | This test is definitely imperfect (should have no erroneous failures, only erroneous passes), but should serve as a good smoke test if matrix alignment is ever broken again. Looking at the generated LLVM, there is a bunch of weird choices for alignment chosen that might be worth looking into. It's also worth noting that the failure mode of this test is a #GP exception, which I don't know how well the test runner handles in a larger test corpus.
* | Fix the unused variable errorsAdam Zadrożny2024-12-041-2/+2
| |
* | improve `strings.index_multi`Adam Zadrożny2024-12-041-0/+19
| | | | | | | | | | | | | | There's no point searching for substrings after lowest_index, so let's not. This significantly improves performance on long strings.
* | Add test for regex preallocated captures.Ycros2024-12-041-0/+37
| |
* | Correct handling newlines between build tags in `core:odin`Damian Tarnawski2024-12-011-12/+9
|/ | | | | | | Previously I thought that each newline worked as `OR` basically the same as `,`. This corrects this to work as `AND` instead.
* Add comment explaining #4515 test.Jeroen van Rijn2024-11-251-3/+8
|
* Test #4515Jeroen van Rijn2024-11-251-0/+34
|
* oops, copy-paste-bugColin Davidson2024-11-201-1/+1
|
* fix parsing issue around utc/localtime splitColin Davidson2024-11-201-0/+10
|
* [runtime] `make(map[K]V)` should not allocate any capacityTetralux2024-11-161-0/+24
| | | | | | | `make(map[K]V)` was resolving to `make_map_cap()` which allocates initial capacity when it wasn't intended to. It now calls `make_map()` which doesn't allocate any capacity. Both `make(map[K]V)` and `make(map[K]V, allocator)` will NOT allocate initial capacity now.
* os2: skip dir test when unsupportedLaytan Laats2024-11-151-0/+6
|
* os2: add read dir testLaytan Laats2024-11-151-0/+26
|
* add new test, better fail-check, and non-transitioning tz fixColin Davidson2024-11-051-0/+14
|
* fix thread_unix for Darwin after pthread corrections in posix packageLaytan Laats2024-10-302-0/+48
| | | | | | | | | | | | | | | | | | | | | | | afed3ce removed the sys/unix package and moved over to sys/posix, it has new bindings for the pthread APIs but should have been equivalent (not). 8fb7182 used `CANCEL_ENABLE :: 0`, `CANCEL_DISABLE :: 1`, `CANCEL_DEFERRED :: 0`, `CANCEL_ASYNCHRONOUS :: 1` for Darwin, while the correct values are `1`, `0`, `2` and `0` respectively (same mistake was made for FreeBSD in that commit). What this meant is that the `pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS)` was not actually successful, but because the error wasn't checked it was assumed it was. It also meant `pthread_setcancelstate(PTHREAD_CANCEL_ENABLE)` would actually be setting `PTHREAD_CANCEL_DISABLE`. The code in this PR restores the behaviour by now actually deliberately setting `PTHREAD_CANCEL_DISABLE` and not setting `PTHREAD_CANCEL_ASYNCHRONOUS` which was the previous behaviour that does actually seem to work for some reason. (I also fixed an issue in fmt where `x` would use uppercase if it was a pointer.)
* Merge pull request #4427 from laytan/posix-additionsgingerBill2024-10-304-16/+9
|\ | | | | Finish sys/posix with Linux and partial Windows support & clean up other packages as a result
| * fix testLaytan2024-10-281-1/+1
| |
| * sys/posix: impl rest of linux, impl some of WindowsLaytan Laats2024-10-284-17/+10
| |
* | encoding/cbor: fix skipping of ignored/missing fields in struct unmarshalLaytan Laats2024-10-261-1/+4
| |
* | encoding/cbor: handle binary having more fields than the struct by discardingLaytan Laats2024-10-251-0/+51
| |
* | Merge pull request #4335 from colrdavidson/datetime_tzJeroen van Rijn2024-10-221-0/+212
|\ \ | |/ |/| Add Timezone Support to Odin
| * tweaks per laytan suggestionsColin Davidson2024-10-101-8/+8
| |
| * Initial cut of timezonesColin Davidson2024-10-091-0/+212
| |
* | build tracking allocator code on freestanding wasmLaytan Laats2024-10-141-0/+16
|/
* reset n before stderr path tooLaytan Laats2024-10-051-0/+1
|
* add unsupported check in process testLaytan2024-10-041-0/+6
|
* enable test on bsdsLaytan Laats2024-10-031-14/+4
|
* remove posix signal test, it isn't thread safeLaytan Laats2024-10-031-48/+0
|
* fix os2.process_exec on non-windows and add a smoke testLaytan Laats2024-10-032-0/+29
|
* fix benchmarks not compiling and make sure it doesn't happen again by checkingLaytan Laats2024-10-021-4/+4
|
* core/crypto/_sha3: Fix edge case in cSHAKE bytepadYawning Angel2024-09-301-0/+17
| | | | | If the domain separator happens to be exactly the rate, we would previously incorrectly add another rate-bytes of 0s.
* Add linear_search_reverse and linear_search_reverse_procNia2024-09-251-0/+35
|
* fix vet warningsSimon Cruanes2024-09-221-2/+2
|
* Apply suggestions from code reviewSimon Cruanes2024-09-211-2/+3
| | | Co-authored-by: flysand7 <yyakut.ac@gmail.com>