summaryrefslogtreecommitdiff
path: root/tests/core
AgeCommit message (Collapse)Author
2021-12-07Merge pull request #35901 from nathanfranke/pool-byte-array-subarray-exclusiveRémi Verschelde
2021-12-02Merge pull request #55545 from akien-mga/doc-aabb-has_pointRémi Verschelde
AABB: Improve docs and test for `has_point`
2021-12-02AABB: Improve docs and test for `has_point`Rémi Verschelde
Contrarily to the 2D Rect2i counterpart, it doesn't make much sense in 3D and for floating-point AABBs to exclude points on some of its faces.
2021-11-30Don't return reference on copy assignment operatorsRémi Verschelde
We prefer to prevent using chained assignment (`T a = b = c = T();`) as this can lead to confusing code and subtle bugs. According to https://en.wikipedia.org/wiki/Assignment_operator_(C%2B%2B), C++ allows any arbitrary return type, so this is standard compliant. This could be re-assessed if/when we have an actual need for a behavior more akin to that of the C++ STL, for now this PR simply changes a handful of cases which were inconsistent with the rest of the codebase (`void` return type was already the most common case prior to this commit).
2021-11-26PackedByteArray, Array slice end exclusive, rename subarray to sliceNathan Franke
2021-11-24Merge pull request #52456 from kleonc/image-fill-rectRémi Verschelde
2021-11-23Rename `remove()` to `remove_at()` when removing by indexLightning_A
2021-11-23Add Image::fill_rect methodkleonc
2021-11-17Fix divide by zero in pck_packerPaulb23
2021-11-11Rect2: Clarify docs for `has_point` excluding bottom and right bordersRémi Verschelde
Improve tests, as well as documentation for `expand`.
2021-11-11String: Remove `erase` method, bindings can't mutate StringRémi Verschelde
2021-11-07Move and organize tests into subfoldersAaron Franke