diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-10-08 04:04:06 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-10-08 04:04:06 +0200 |
commit | e4f23e097b731aaa221c2098f8e6cf1cf5ae5e5c (patch) | |
tree | e655cd46c582f6df87df68e5997e997451080937 /test | |
parent | 5dfb472ff446baa440ff837a076ee24d51d0e183 (diff) |
a
Diffstat (limited to 'test')
-rw-r--r-- | test/app.hpp | 1 | ||||
-rw-r--r-- | test/dijkstra.cpp | 15 | ||||
-rw-r--r-- | test/main.cpp | 1 |
3 files changed, 17 insertions, 0 deletions
diff --git a/test/app.hpp b/test/app.hpp index fbce503b..ef98a8b4 100644 --- a/test/app.hpp +++ b/test/app.hpp @@ -43,6 +43,7 @@ struct test_app final : private FM_APPLICATION static void test_path_search(); static void test_hash(); static void test_path_search_node_pool(); + static void test_dijkstra(); static void zzz_test_misc(); }; } // namespace floormat diff --git a/test/dijkstra.cpp b/test/dijkstra.cpp new file mode 100644 index 00000000..d34e28bf --- /dev/null +++ b/test/dijkstra.cpp @@ -0,0 +1,15 @@ +#include "app.hpp" +#include "path-search.hpp" + +namespace floormat { + +void test_app::test_dijkstra() +{ + auto w = world(); + auto a = astar(); + + a.Dijkstra(w, {}, 0, {{0, 0, 0}, {}}, {{1, 1, 0}, {}}, + 1*TILE_MAX_DIM*iTILE_SIZE2.x()); +} + +} // namespace floormat diff --git a/test/main.cpp b/test/main.cpp index 928ff565..57dd8fc5 100644 --- a/test/main.cpp +++ b/test/main.cpp @@ -33,6 +33,7 @@ int test_app::exec() test_math(); test_hash(); test_path_search_node_pool(); + test_dijkstra(); zzz_test_misc(); return 0; |