Jeroen van Rijn
761a079789
Fix net.split_url
...
Resolves issue #2924
2023-11-09 16:56:54 +01:00
Rickard Andersson
2e3224a138
testing: add test for Out_Of_Memory return
2023-10-02 15:17:06 +03:00
Jeroen van Rijn
81fe93127d
Make core:net test os.exit(1) on failure.
2023-09-30 22:47:49 +02:00
Jeroen van Rijn
aa5716d3f9
Allow any order of query strings in net.join_url tests.
2023-09-30 22:36:50 +02:00
Jeroen van Rijn
07cd6cd670
Change large math/big test literals to hex.
...
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.
2023-09-30 11:16:36 +02:00
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