godot/tests/core
lawnjelly efbb28d09a
Make acos and asin safe
A common bug with using acos and asin is that input outside -1 to 1 range will result in Nan output. This can occur due to floating point error in the input.

The standard solution is to provide safe_acos function with clamped input. For Godot it may make more sense to make the standard functions safe.

(cherry picked from commit 50c5ed4876)
2023-05-12 12:31:23 +02:00
..
config One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
input Add Unit test for InputEventMouse 2023-01-29 14:09:53 +01:00
io Fail instead of segfaulting in IO tests 2023-01-31 02:21:27 -05:00
math Make acos and asin safe 2023-05-12 12:31:23 +02:00
object Add tests to ensure bound methods and signals are valid identifiers 2023-01-23 21:19:57 +01:00
os One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
string Fix String.split() with empty string and delimeter 2023-02-02 01:34:11 +01:00
templates Fix PagedArray.merge_unordered() dropping pages 2023-02-16 19:58:27 -05:00
threads One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
variant Fix `Array.slice()` rounding for `abs(step) != 1` 2023-03-27 17:31:05 +02:00
test_crypto.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
test_hashing_context.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
test_time.h Explicitly cast to Variant's int type in Time tests 2023-02-20 14:46:21 -06:00