Yawning Angel
aa8e6e0938
tests: Add random number generator tests
2025-11-29 16:16:52 +09:00
Tohei Ichikawa
6450459008
Convert test case indentation to tabs
2025-11-09 22:07:09 -05:00
Tohei Ichikawa
411a163827
Add link to relevant PR to test case
2025-11-09 22:02:37 -05:00
Tohei Ichikawa
d6b5a3139a
Fix allocation of anonymous globals
2025-11-09 21:07:28 -05:00
Laytan Laats
7aeed8b205
skip pow -25 for linux arm64 too
2025-11-08 21:52:50 +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
Tohei Ichikawa
403ca2fb2e
Improve type inferencing of literals when calling proc groups
2025-09-15 20:40:20 -04:00
gingerBill
a0462aa8d7
Fix test for global procedure initialization
2025-08-08 12:49:24 +01:00
FourteenBrush
d08ebf56e7
Add intrinsics.type_enum_is_contiguous test
2025-07-11 21:10:42 +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
Laytan Laats
c35a45e823
fix global and static any
...
Fixes #4627
2025-05-17 16:49:30 +02:00
0xrsp
ea806f1d5e
new compiler intrinsics type_integer_to_unsigned,type_integer_to_signed
2025-05-15 01:00:40 +09:30
Laytan Laats
396a18efce
fix variable NaN comparisons
2025-04-30 20:04:24 +02:00
mtarik34b
1d2adbb3c6
Remove reference to git issue
2025-04-15 05:26:36 +02:00
mtarik34b
313d7d84bc
Ensure NaN != any_float_value evaluates to true for constant NaN values
2025-04-15 05:00:36 +02:00
Jeroen van Rijn
843467bb8f
Fix #5004
...
Fixes constant NaN to constant NaN comparisons.
2025-04-05 14:47:30 +02:00
Laytan Laats
5defddffd0
reorganize tests and handle endian
2025-02-06 21:44:34 +01:00
Laytan Laats
9241d7c698
add tests for abs() on floats
2025-02-06 21:20:15 +01:00
Gavin
25ae3d0785
Add regression test for #4553
...
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.
2024-12-05 15:26:18 -05:00
Laytan Laats
99aa0d3a35
fix type switching over internal pointer union
...
Fixes #3947
2024-08-12 00:02:05 +02:00
Laytan Laats
4d1d754cae
fix specific_union_variant in map_keyed_by_union not converting to union type
2024-07-29 02:32:13 +02: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
7ec17ecf98
Update core:math/rand to use context.random_generator and remove rand.Rand
2024-06-15 15:33:24 +01:00
Laytan Laats
0a528777e8
utilize odin test -all-packages instead of (make/bat) scripts for running tests
2024-06-07 15:50:00 +02:00
Andreas T Jonsson
f0e98372fb
Minor cleanup of makefiles and scripts
2024-06-05 15:37:02 +02:00
Jeroen van Rijn
60d0c03134
Strip old test runner back out of internal, issues and vendor
2024-06-02 21:15:25 +02:00
Andreas T Jonsson
88528f7613
Updated makefiles to exclude some tests on BSDs
2024-05-13 09:41:54 +02:00
Jeroen van Rijn
23545c3f37
Enable in Makefile
2024-05-12 23:47:42 +02:00
Jeroen van Rijn
41b8f06f51
Add 1 more each for < and >
2024-05-12 23:43:05 +02:00
Jeroen van Rijn
55d21f4c2f
Test string compare
...
To avoid regression of the bug fixed in f8581537e4 .
2024-05-12 23:38:17 +02:00
Laytan Laats
133b45d843
fix amd64 sysv abi to pass asan everywhere
...
I verified the PR by running the entire test suite of Odin itself with
`-sanitize:address` and also the ols test suite (which caused unique problems
before).
A test has also been added with some problematic code, Windows seems to
have problems with asan in CI or in general so it is not ran there.
The LB_ABI_COMPUTE_RETURN_TYPES block has been removed entirely because
it was unused, I got pretty confused why it didn't effect anything at
first.
Fixes #3211
2024-04-04 23:45:23 +02:00
Laytan Laats
31407d9b1b
fix 128 bit int alignment on arm64
...
Fixes #2403
2024-04-04 18:39:41 +02:00
Laytan Laats
3a0df80066
correct newly found vets
2024-04-03 00:52:58 +02:00
Laytan Laats
606f11ebe8
fix hxa test use after free, skip weird pow test failure
2024-02-02 21:10:11 +01:00
gingerBill
3e7e779abf
Replace core:* to base:* where appropriate
2024-01-28 22:18:51 +00:00
Jeroen van Rijn
744eb7c6d8
Delete test artifact.
2023-11-04 22:47:59 +01:00
Jeroen van Rijn
4cb0edc90b
Work around LLVM idiocy.
2023-11-04 22:42:32 +01:00
Jeroen van Rijn
6201280468
Add math.pow2_f{16,32,64}, fast floating point 2^x where x is an integer.
2023-11-04 22:14:44 +01:00
Jeroen van Rijn
f5febb633c
Temporarily disable RTTI test on Windows.
2023-10-31 13:12:17 +01:00
Jeroen van Rijn
82cd30a145
Add test for RTTI
2023-10-30 13:06:45 +01:00
Lucas Perlind
c59ad24856
Make tests scripts error if a test fails
...
Additionally fixes tests that were found broken because
of this.
2023-04-03 16:49:14 +10:00
Jeroen van Rijn
3949e2220f
Test new map when used as a set.
...
map[K]struct{} works fine.
2022-11-15 01:27:29 +01:00
Jeroen van Rijn
9b88a38e54
map tests for Linux and Mac
2022-11-13 16:32:24 +01:00
Jeroen van Rijn
16a494347c
map: Add tests for update + delete.
2022-11-13 16:24:20 +01:00
Jeroen van Rijn
699cabeb1c
Update tests/internal/build.bat
2022-11-12 17:36:20 +01:00
Jeroen van Rijn
7207f4b0c5
Add tests/internal/build.bat
2022-11-12 17:31:26 +01:00
Jeroen van Rijn
9c1b464c94
Add tests for new map implementation.
2022-11-12 17:25:42 +01:00