summaryrefslogtreecommitdiffhomepage
path: root/editor
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-03-23 10:46:09 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-03-23 10:46:09 +0100
commiteb01eca652392e57b2a6e7d28fcb2b98ab16072d (patch)
tree26a9db65e2aeb536457c5928b597ee27f5112fe9 /editor
parentc398752ab842050c5ea89e986a92fd3b0a48a419 (diff)
editor/tests: move pathfinding -> walking
Diffstat (limited to 'editor')
-rw-r--r--editor/tests-private.hpp14
-rw-r--r--editor/tests/walk.cpp (renamed from editor/tests/pathfinding.cpp)2
2 files changed, 8 insertions, 8 deletions
diff --git a/editor/tests-private.hpp b/editor/tests-private.hpp
index e7882a8b..b31e9d2c 100644
--- a/editor/tests-private.hpp
+++ b/editor/tests-private.hpp
@@ -32,7 +32,7 @@ protected:
enum class Test : uint32_t {
//todo add a speedometer overlay test
- none, path, raycast, region, pathfinding, COUNT,
+ none, path, raycast, region, walk, COUNT,
};
struct tests_data final : tests_data_
@@ -45,7 +45,7 @@ struct tests_data final : tests_data_
static Pointer<base_test> make_test_path();
static Pointer<base_test> make_test_raycast();
static Pointer<base_test> make_test_region();
- static Pointer<base_test> make_test_pathfinding();
+ static Pointer<base_test> make_test_walk();
Pointer<base_test> current_test;
Test current_index = Test::none;
@@ -58,11 +58,11 @@ struct tests_data final : tests_data_
};
static constexpr test_tuple fields[] = {
- { "None"_s, Test::none, make_test_none, },
- { "Path"_s, Test::path, make_test_path, },
- { "Raycasting"_s, Test::raycast, make_test_raycast },
- { "Region extraction"_s, Test::region, make_test_region },
- { "Pathfinding"_s, Test::pathfinding, make_test_pathfinding },
+ { "None"_s, Test::none, make_test_none, },
+ { "Path"_s, Test::path, make_test_path, },
+ { "Raycasting"_s, Test::raycast, make_test_raycast },
+ { "Region extraction"_s, Test::region, make_test_region },
+ { "Walking"_s, Test::walk, make_test_walk },
};
};
diff --git a/editor/tests/pathfinding.cpp b/editor/tests/walk.cpp
index 31dc6055..938c36d1 100644
--- a/editor/tests/pathfinding.cpp
+++ b/editor/tests/walk.cpp
@@ -254,6 +254,6 @@ void pf_test::update_pre(app& a, const Ns& dt)
} // namespace
-Pointer<base_test> tests_data::make_test_pathfinding() { return Pointer<pf_test>{InPlaceInit}; }
+Pointer<base_test> tests_data::make_test_walk() { return Pointer<pf_test>{InPlaceInit}; }
} // namespace floormat::tests