| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Delete duplicate test vectors. | Jeroen van Rijn | 2025-06-11 | 1 | -4813/+0 |
| | | |||||
| * | Turn `core:math/bìg` tests into regular `core:testing` tests. | Jeroen van Rijn | 2025-06-11 | 6 | -1153/+10457 |
| | | | | | | | `core:math/big` has been verified against Python's big integer implementation long enough. Turn it into a regular regression test using the `core:testing` framework, testing against a generated corpus of test vectors. | ||||
| * | Fix path | Jeroen van Rijn | 2025-06-10 | 1 | -1/+1 |
| | | |||||
| * | Add initial tests for big rationals | Jeroen van Rijn | 2025-06-10 | 2 | -1/+51 |
| | | |||||
| * | Clarify `strconv.append_*` to `strconv.write_*` | Feoramund | 2025-06-05 | 1 | -1/+1 |
| | | |||||
| * | `signbit` -> `sign_bit` in `tests/core/math` | Jeroen van Rijn | 2025-04-15 | 1 | -1/+1 |
| | | |||||
| * | Added tests for `math.nextafter`. | Barinzaya | 2025-04-07 | 1 | -0/+189 |
| | | |||||
| * | Add test for `count_digits_of_base` | Feoramund | 2024-08-18 | 1 | -1/+35 |
| | | |||||
| * | Fix core:math/fixed. | Jeroen van Rijn | 2024-06-26 | 1 | -0/+51 |
| | | |||||
| * | Merge pull request #3137 from laytan/show-defineable | gingerBill | 2024-06-20 | 1 | -1/+1 |
| |\ | | | | | Add flags to show/export defineable values and warn if a -define is unused in the project | ||||
| | * | remove caught unused define | Laytan Laats | 2024-06-07 | 1 | -1/+1 |
| | | | |||||
| * | | Add tests for `core:math/rand` | Feoramund | 2024-06-15 | 1 | -0/+35 |
| | | | |||||
| * | | Add test for `core:math/big` permutation & combination procs | Feoramund | 2024-06-09 | 1 | -0/+37 |
| | | | |||||
| * | | Rename `math/big` test package | Feoramund | 2024-06-09 | 1 | -1/+1 |
| |/ | | | | | This is in line with the other tests, and it does not seem to affect building the library. | ||||
| * | Disable `FANCY_OUTPUT` in Odin test scripts | Feoramund | 2024-06-02 | 1 | -1/+1 |
| | | | | | This should tidy up the CI output logs a bit. | ||||
| * | Port `tests\core\math`, `math\linalg\glsl` and `math\noise` | Jeroen van Rijn | 2024-06-02 | 3 | -303/+170 |
| | | |||||
| * | port math.round from Golang | Juan Ignacio Díaz | 2024-02-16 | 1 | -0/+181 |
| | | |||||
| * | Replace `core:*` to `base:*` where appropriate | gingerBill | 2024-01-28 | 1 | -1/+1 |
| | | |||||
| * | Change large math/big test literals to hex. | Jeroen van Rijn | 2023-09-30 | 1 | -4/+4 |
| | | | | | | | | | In September 2022, the Python team addressed a possible DoS issue converting big integers to and from base 10 strings: https://github.com/python/cpython/issues/95778 Converting to/from base 10 is a quadratic operation, so they limited it to 4300 digits: https://discuss.python.org/t/int-str-conversions-broken-in-latest-python-bugfix-releases/18889/83 Github CI still uses an old Python version which parsed our test suite just fine. This patch converts them to hex literals to ensure our test doesn't break when Github does update to a non-vulnerable Python version released after September 2022. | ||||
| * | Keep `-vet` happy by removing `using` | gingerBill | 2023-07-31 | 2 | -104/+75 |
| | | |||||
| * | Keep -vet happy | gingerBill | 2023-07-31 | 1 | -3/+3 |
| | | |||||
| * | Remove `using` where easily possible | gingerBill | 2023-07-31 | 2 | -0/+2 |
| | | |||||
| * | Improve core:math procedures and add loads of unit tests | gingerBill | 2022-11-29 | 1 | -1/+835 |
| | | |||||
| * | Merge pull request #1544 from FancyKillerPanda/build_ignore | gingerBill | 2022-11-03 | 1 | -1/+0 |
| |\ | | | | | Changed `//+ignore` to `//+build ignore` and emit a warning for unknown tags | ||||
| | * | Removed //+build ignore from tests/core/math/big/test.odin. | FancyKillerPanda | 2022-02-24 | 1 | -1/+0 |
| | | | |||||
| | * | Changed //+ignore to //+build ignore. | FancyKillerPanda | 2022-02-24 | 1 | -1/+1 |
| | | | |||||
| * | | Update CI for math library. | Jeroen van Rijn | 2022-04-26 | 1 | -1/+1 |
| | | | |||||
| * | | Revert "Merge pull request #1702 from Kelimion/filename_generation" | Jeroen van Rijn | 2022-04-24 | 1 | -1/+1 |
| | | | | | | | | | | | This reverts commit a40a53b10447c9223c24cccf565a95f1773d3922, reversing changes made to 5422a3b17eae821df4adf869960995e922eb0e76. | ||||
| * | | Compiler: Add early error for output path being a directory. | Jeroen van Rijn | 2022-04-24 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | - Introduce new `Path` type and an array of build paths on the build context. - Resolve input and output paths/files early (before parsing). - Error early if inputs are missing or outputs are directories. - Plumb new file path generation into linker stage instead of its adhoc method. TODO: - Remove more adhoc file path generation in parser and linker stage. - Make intermediate object file generation use new path system. - Round out and robustify Path helper functions. | ||||
| * | | [math/big] Tell Python test runner how many nails we use. | Jeroen van Rijn | 2022-04-01 | 3 | -11/+13 |
| | | | | | | | | | | | | | | | | | | | | | | | `_DIGIT_NAILS` is defined as 4, meaning that we use 60 out of every 64 bits. We can use as few as 1 nail, using 63 bits out of every 64, and all tests will still pass. However, it needs more testing to see if that's a worthwhile change to make. For the tests to work properly when changing the nails, Python needs to know about it as well. In addition, compile the big math code with `-o:speed` going forward. | ||||
| * | | Merge branch 'master' into fract_trunc_classify_#1574 | gitlost | 2022-03-09 | 1 | -16/+14 |
| |\ \ | | | | | | | | | | Resolve conflicts with [9848e88] & sameify Makefile & tests/common/common.odin | ||||
| | * | | [varint] Add LEB128 decoding + tests | Jeroen van Rijn | 2022-03-08 | 1 | -16/+14 |
| | | | | | | | | | | | | | Also make tests in general less spammy: Don't print [PASS] for each successful test, only report failures and progress. | ||||
| * | | | Fix issue #1574 "fract in linalg/glm is broken" by fixing | gitlost | 2022-03-08 | 2 | -0/+395 |
| |/ / | | | | | | | | | | | | | | | | | trunc_f16/32/64 in "math.odin" (~ typos on expressions) Fix classify_f16 Inf test (would fail for subnormal 0h0001) by changing multiplier 0.5 -> 0.25 Add some useful consts to "math.odin" (INF_F16 etc) Add comment to "demo.odin" mentioning that -0.0 must be used to specify negative zero | ||||
| * / | [tests] Make test runners exit with errorlevel 1 if a test fails. | Jeroen van Rijn | 2022-03-03 | 1 | -0/+4 |
| |/ | |||||
| * | Ports OpenSimplex2 from https://github.com/KdotJPG/OpenSimplex2 to Odin. ↵ | NoahR02 | 2022-02-08 | 1 | -4/+0 |
| | | | | | Adds tests for the noise procedures. | ||||
| * | Ports OpenSimplex2 from https://github.com/KdotJPG/OpenSimplex2 to Odin. ↵ | NoahR02 | 2022-02-08 | 1 | -0/+153 |
| | | | | | Adds tests for the noise procedures. | ||||
| * | [math/big] Rename `internal_int_shl_digit` to `_private_int_shl_leg`. | Jeroen van Rijn | 2021-12-11 | 2 | -20/+20 |
| | | | | | | Same for the SHR variant. These are pure implementation details to shift by a leg/word at a time. Prevent accidental usage. | ||||
| * | [math/big] Fix int_set and int_get. | Jeroen van Rijn | 2021-12-09 | 1 | -11/+16 |
| | | |||||
| * | LLVM 12 big math test workaround. | Jeroen van Rijn | 2021-09-11 | 3 | -53/+36 |
| | | |||||
| * | Separate math/big test. | Jeroen van Rijn | 2021-09-07 | 1 | -0/+13 |
| | | |||||
| * | Move math/big tests under `tests/`. | Jeroen van Rijn | 2021-09-07 | 2 | -0/+1150 |