gingerBill
c8f05b7c0c
Merge pull request #2269 from Skytrias/luapattern
...
Add lua pattern matching to core:text with tests
2022-12-22 11:08:10 +00:00
skytrias
e5d0417a6c
folder name changed
2022-12-21 21:36:50 +01:00
Lucas Perlind
f029b4beb1
Add more utility procedures to small array
2022-12-21 13:00:33 +11:00
skytrias
1bea0f3772
fix styling issues and use switches in cases its necessary, add comments to helpers
2022-12-20 15:48:10 +01:00
skytrias
ff7f139fd7
add iter_index and update tests to use easier matcher setup
2022-12-20 12:59:32 +01:00
skytrias
eb5523d5d3
case insensitive helper call
2022-12-18 23:11:23 +01:00
skytrias
3f4bbbec29
add proper unicode walking
2022-12-18 23:11:23 +01:00
skytrias
70bd220f34
balanced string, frontier pattern, gsub_with and their tests added
2022-12-18 23:11:23 +01:00
skytrias
bd3596f012
create lua strlib text package and tests
2022-12-18 23:11:23 +01:00
gingerBill
0c25f7cdc5
Improve core:math procedures and add loads of unit tests
2022-11-29 11:39:44 +00:00
gingerBill
f7211408fc
Merge pull request #1544 from FancyKillerPanda/build_ignore
...
Changed `//+ignore` to `//+build ignore` and emit a warning for unknown tags
2022-11-03 12:58:26 +00:00
Jeroen van Rijn
b7abacfa7e
Enable libc complex test.
2022-09-22 01:01:40 +02:00
13419596
4b4c2a2abd
Correcting libc pow bindings
...
Adding tests that libc pow(f) functions
- have two arguments
- behave as expected for simple inputs.
2022-09-21 17:15:28 -05:00
Jeroen van Rijn
99f4cc3006
[core:image/tga] Add tests.
2022-09-10 20:22:10 +02:00
Phil
1296630160
cleanup tests
2022-09-01 12:34:08 -07:00
Phil
63eec25044
add sort_by_indices overload and test
2022-09-01 12:32:33 -07:00
Phil
7a9b0731cf
add tests for sort_by_indices
2022-09-01 12:13:15 -07:00
Phil
d45661c405
cleanup slice sorting with indices changes
2022-09-01 11:51:45 -07:00
Phil
002bec256a
have sort_with_indices allocate. Add a couple convenience procs for using the indices result to sort other slices.
2022-09-01 11:46:59 -07:00
Jeroen van Rijn
36473b2774
Add test for core:slice.
2022-09-01 18:04:48 +02:00
gingerBill
ae9d540c1c
Correct naming in tests
2022-07-11 11:55:49 +01:00
Jeroen van Rijn
ab98108441
[image/png] Construct test paths differently.
2022-06-11 16:07:56 +02:00
gingerBill
bc18310107
Correct xml test
2022-05-12 16:01:15 +01:00
zhibog
0e91e63043
Fix issue 1761. Added the test vector to the core and vendor tests
2022-05-04 22:13:50 +02:00
Jeroen van Rijn
b99940f33a
[xxhash] For the streaming tests, randomly select the size to use.
...
Randomize size used with `update`.
It'll print "Using user-selected seed {18109872483301276539,2000259725719371} for update size randomness."
If a streaming test then fails, you can repeat it using:
`odin run . -define:RAND_STATE=18109872483301276539 -define:RAND_INC=2000259725719371`
2022-05-02 19:20:25 +02:00
Jeroen van Rijn
6985181961
[xxhash] Add tests for large inputs
...
Test XXH32, XXH64, XXH3-64 and XXH3-128 for large inputs, with both all-at-once and streaming APIs.
XXH32_create_state and XXH64_create_state now implicitly call their "reset state" variants to simplify the streaming API to 3 steps:
- create state / defer destroy
- update
- digest (finalize)
These are tested with an array of 1, 2, 4, 8 and 16 megabytes worth of zeroes.
All return the same hashes as do both the one-shot version, as well as that of the official xxhsum tool.
3778/3778 tests successful.
2022-05-02 17:51:39 +02:00
Jeroen van Rijn
2081f8fcd6
[tests/core/image] Remove old crappy PPM writer.
2022-04-30 22:04:47 +02:00
Jeroen van Rijn
7a032cf9f9
[pbm] Also test PFM formats.
2022-04-30 21:57:14 +02:00
Jeroen van Rijn
694c13fe86
Merge branch 'master' into pr/1726
2022-04-30 21:01:04 +02:00
Jeroen van Rijn
8bd16c32f3
[pbm] Fixes.
2022-04-30 21:00:32 +02:00
Jeroen van Rijn
234d529867
[pbm] WIP unit tests. part deux.
2022-04-30 19:25:16 +02:00
Jeroen van Rijn
dd8b71e353
[pbm] WIP unit tests.
2022-04-30 17:52:23 +02:00
Jeroen van Rijn
3978e7e1ca
[xml] Add parse_from_string overload.
...
`parse` now takes either a `[]u8` slice or a string.
`load_from_file` takes a path string.
2022-04-30 14:43:58 +02:00
Jeroen van Rijn
d6a8216ce4
[pbm] Normalize some errors, correct .depth
2022-04-30 14:34:07 +02:00
Jeroen van Rijn
9c9c2b483c
[i18n] Enable *nix tests again.
2022-04-29 18:41:21 +02:00
Jeroen van Rijn
819345caa6
Disable i18n test for *nix for now.
2022-04-29 18:28:42 +02:00
Jeroen van Rijn
36263399a0
[i18n] Enable i18n test on Linux.
2022-04-29 18:13:46 +02:00
Jeroen van Rijn
ff0f0c447f
[i18n] Fix segfault on destroy on Linux
...
Forgot to intern the section string in QT TS loader.
2022-04-29 18:10:13 +02:00
Jeroen van Rijn
09e1c0fa27
[i18n] Add tests.
2022-04-29 16:19:13 +02:00
Jeroen van Rijn
957ef8e8fe
[i18n/xml] Move I18N XML files to their own assets directory.
2022-04-29 13:16:30 +02:00
Jeroen van Rijn
1289c96e2c
[i18n] QT Linguist TS reader.
2022-04-29 00:29:55 +02:00
Jeroen van Rijn
127b0ba65e
[xml] Enable tests.
2022-04-28 15:46:36 +02:00
Jeroen van Rijn
80878264b6
[xml] Speedup.
2022-04-28 15:29:00 +02:00
Jeroen van Rijn
6df21d6a9f
Merge branch 'master' into xml
2022-04-27 16:13:47 +02:00
Jeroen van Rijn
da0f722aad
Move Odin CI test assets over to its own repository.
2022-04-27 15:56:45 +02:00
Jeroen van Rijn
c4e0d1efa1
Merge branch 'master' into xml
2022-04-27 14:37:15 +02:00
Jeroen van Rijn
40f0f5ad8d
Update CI for math library.
2022-04-26 15:01:09 +02:00
Jeroen van Rijn
5e11ad2e1e
Update test paths.
2022-04-26 14:23:23 +02:00
Jeroen van Rijn
a5342a0126
Address edge cases.
2022-04-26 13:14:09 +02:00
Jeroen van Rijn
3d2856db31
Update tests to use new filename generation code.
2022-04-24 14:19:25 +02:00