godot/tests
Rémi Verschelde c6cefb1b79
Array: Relax slice bound checks to properly handle negative indices
The same is done for `Vector` (and thus `Packed*Array`).

`begin` and `end` can now take any value and will be clamped to
`[-size(), size()]`. Negative values are a shorthand for indexing the array
from the last element upward.

`end` is given a default `INT_MAX` value (which will be clamped to `size()`)
so that the `end` parameter can be omitted to go from `begin` to the max size
of the array.

This makes `slice` works similarly to numpy's and JavaScript's.
2022-01-10 22:42:03 +01:00
..
core Array: Relax slice bound checks to properly handle negative indices 2022-01-10 22:42:03 +01:00
data Tests: Improve coverage for File::get_csv_line() 2021-08-04 11:53:21 +02:00
scene Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
servers Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
SCsub Move and organize tests into subfolders 2021-11-07 00:43:31 -06:00
test_macros.cpp Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
test_macros.h Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
test_main.cpp Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
test_main.h Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
test_tools.h Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
test_utils.cpp Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
test_utils.h Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
test_validate_testing.h Update copyright statements to 2022 2022-01-03 21:27:34 +01:00