Commit Graph

154 Commits

Author SHA1 Message Date
Abdelrahman Farid
9ed36445b9 Add test for utf8 multibyte strings 2023-09-19 22:18:23 +03:00
Laytan Laats
287beaff35 use KiB etc. instead of KB 2023-09-12 16:49:42 +02:00
Laytan Laats
aab2fa1af9 fix test case 2023-09-01 19:53:24 +02:00
Laytan Laats
4cf176de0b actually run the test 2023-09-01 19:51:53 +02:00
Laytan Laats
735cfcd290 Add formatting of bytes into the best unit of measurement 2023-09-01 19:17:07 +02:00
gingerBill
be6f355665 Keep -vet happy by removing using 2023-07-31 12:32:30 +01:00
gingerBill
5dba08fb3b Keep -vet happy 2023-07-31 12:19:25 +01:00
gingerBill
8aa36072fc Remove using where easily possible 2023-07-31 12:11:17 +01:00
Jeroen van Rijn
683ee75703 Fix #2684 2023-07-28 15:53:39 +02:00
gingerBill
8b825b23b1 Add missing comma 2023-05-29 15:18:38 +01:00
Laytan Laats
5d54b710e7 fix #2550 json encoding should use surrogate pairs per RFC7159 2023-05-22 17:22:33 +02:00
Jeroen van Rijn
5d2c1b175e Merge pull request #2541 from laytan/add-hex-and-expand-percent-decoding
fix hex.encode and add tests for the package
2023-05-15 22:32:27 +02:00
Laytan Laats
2ab6de8ee4 fix hex.encode and add tests for the package 2023-05-15 20:52:07 +02:00
Yoshihiro Tanaka
59e66ffe49 Add test for net.split_url 2023-05-14 12:15:20 +09:00
Yoshihiro Tanaka
418a0132d0 Join URL queries with & 2023-05-14 12:15:20 +09:00
Jeroen van Rijn
6fe8692b98 Merge pull request #2445 from Lperlind/documentation/strings_returns
Document return values of strings and add allocator errors where possible
2023-04-08 10:05:39 +02:00
Yawning Angel
7fc2081543 core/crypto: Add private attributes for internals
These constants and internal routines are not intended for use outside
the actual implementations themselves.
2023-04-08 10:15:00 +09:00
Lucas Perlind
e0d9092df8 Document return values of strings and add allocator errors where
possible
2023-04-07 20:39:01 +10: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
d337a11e83 Add tests for string case conversion 2023-03-24 11:47:45 +01:00
Jeroen van Rijn
e254581a1b Apply #shared_nil to Network_Error 2023-03-04 10:39:20 +01:00
Jeroen van Rijn
5c05038af0 Finish cleaning up core_net. 2023-03-03 17:26:44 +01:00
Colin Davidson
28f7f57247 manually start merging core_net 2023-03-01 07:58:30 -08:00
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