summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarcel Admiraal <madmiraal@users.noreply.github.com>2021-03-14 07:21:32 +0000
committerMarcel Admiraal <madmiraal@users.noreply.github.com>2021-03-21 10:20:08 +0000
commit755c70b871c659df2d7c3a003593f38775dd7b5d (patch)
tree9196b3da289e7ffc27e321ce6c4d2f97e0af7c95 /tests
parent07f076fa4f2896415993bb8e3fb42128423de0d2 (diff)
Rename Array.invert() to Array.reverse()
Does the same internally for List and Vector<>, which includes all PackedArray types.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_geometry_2d.h2
-rw-r--r--tests/test_list.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_geometry_2d.h b/tests/test_geometry_2d.h
index ea02d1114f..c9313f3625 100644
--- a/tests/test_geometry_2d.h
+++ b/tests/test_geometry_2d.h
@@ -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));
}
diff --git a/tests/test_list.h b/tests/test_list.h
index 1c70b6e961..52d5edff70 100644
--- a/tests/test_list.h
+++ b/tests/test_list.h
@@ -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);