Merge pull request #21492 from Maykeye/astar

Changed A* exit condition, added 2 tests for it
This commit is contained in:
Rémi Verschelde
2018-10-02 10:30:12 +02:00
committed by GitHub
4 changed files with 169 additions and 17 deletions
+7
View File
@@ -33,6 +33,7 @@
#ifdef DEBUG_ENABLED
#include "test_astar.h"
#include "test_gdscript.h"
#include "test_gui.h"
#include "test_image.h"
@@ -64,6 +65,7 @@ const char **tests_get_names() {
"gd_bytecode",
"image",
"ordered_hash_map",
"astar",
NULL
};
@@ -149,6 +151,11 @@ MainLoop *test_main(String p_test, const List<String> &p_args) {
return TestOrderedHashMap::test();
}
if (p_test == "astar") {
return TestAStar::test();
}
return NULL;
}