summaryrefslogtreecommitdiff
path: root/tests/core
diff options
context:
space:
mode:
authorYuri Roubinsky <chaosus89@gmail.com>2022-03-20 17:20:32 +0300
committerYuri Roubinsky <chaosus89@gmail.com>2022-03-20 17:34:40 +0300
commit7913e049505e86e7721395b6c32686967bc9ad3c (patch)
treef7c0570e576e13947b793e7ed333a8a17476b841 /tests/core
parent5901d9145822bd068078441f4e96377d49018ed9 (diff)
Rename `AStar` to `AStar3D`
Diffstat (limited to 'tests/core')
-rw-r--r--tests/core/math/test_astar.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/core/math/test_astar.h b/tests/core/math/test_astar.h
index 859172dca3..1306d3c20e 100644
--- a/tests/core/math/test_astar.h
+++ b/tests/core/math/test_astar.h
@@ -37,7 +37,7 @@
namespace TestAStar {
-class ABCX : public AStar {
+class ABCX : public AStar3D {
public:
enum {
A,
@@ -66,7 +66,7 @@ public:
}
};
-TEST_CASE("[AStar] ABC path") {
+TEST_CASE("[AStar3D] ABC path") {
ABCX abcx;
Vector<int> path = abcx.get_id_path(ABCX::A, ABCX::C);
REQUIRE(path.size() == 3);
@@ -75,7 +75,7 @@ TEST_CASE("[AStar] ABC path") {
CHECK(path[2] == ABCX::C);
}
-TEST_CASE("[AStar] ABCX path") {
+TEST_CASE("[AStar3D] ABCX path") {
ABCX abcx;
Vector<int> path = abcx.get_id_path(ABCX::X, ABCX::C);
REQUIRE(path.size() == 4);
@@ -85,8 +85,8 @@ TEST_CASE("[AStar] ABCX path") {
CHECK(path[3] == ABCX::C);
}
-TEST_CASE("[AStar] Add/Remove") {
- AStar a;
+TEST_CASE("[AStar3D] Add/Remove") {
+ AStar3D a;
// Manual tests.
a.add_point(1, Vector3(0, 0, 0));
@@ -213,13 +213,13 @@ TEST_CASE("[AStar] Add/Remove") {
// It's been great work, cheers. \(^ ^)/
}
-TEST_CASE("[Stress][AStar] Find paths") {
+TEST_CASE("[Stress][AStar3D] Find paths") {
// Random stress tests with Floyd-Warshall.
const int N = 30;
Math::seed(0);
for (int test = 0; test < 1000; test++) {
- AStar a;
+ AStar3D a;
Vector3 p[N];
bool adj[N][N] = { { false } };