mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
Rename Array.invert() to Array.reverse()
Does the same internally for List and Vector<>, which includes all PackedArray types.
This commit is contained in:
@@ -113,7 +113,7 @@ TEST_CASE("[Geometry2D] Polygon clockwise") {
|
||||
p.push_back(Vector2(1, 5));
|
||||
CHECK(Geometry2D::is_polygon_clockwise(p));
|
||||
|
||||
p.invert();
|
||||
p.reverse();
|
||||
CHECK_FALSE(Geometry2D::is_polygon_clockwise(p));
|
||||
}
|
||||
|
||||
|
||||
@@ -260,7 +260,7 @@ TEST_CASE("[List] Invert") {
|
||||
List<int>::Element *n[4];
|
||||
populate_integers(list, n, 4);
|
||||
|
||||
list.invert();
|
||||
list.reverse();
|
||||
|
||||
CHECK(list.front()->get() == 3);
|
||||
CHECK(list.front()->next()->get() == 2);
|
||||
|
||||
Reference in New Issue
Block a user