Remove build_array and build_dictionary from tests
This commit is contained in:
@@ -53,16 +53,6 @@ public:
|
||||
Variant function1_latest_arg0;
|
||||
};
|
||||
|
||||
static inline Array build_array() {
|
||||
return Array();
|
||||
}
|
||||
template <typename... Targs>
|
||||
static inline Array build_array(Variant item, Targs... Fargs) {
|
||||
Array a = build_array(Fargs...);
|
||||
a.push_front(item);
|
||||
return a;
|
||||
}
|
||||
|
||||
struct GreaterThan {
|
||||
bool operator()(int p_a, int p_b) const { return p_a > p_b; }
|
||||
};
|
||||
@@ -634,7 +624,7 @@ TEST_SUITE("[Navigation2D]") {
|
||||
SIGNAL_WATCH(navigation_server, "map_changed");
|
||||
SIGNAL_CHECK_FALSE("map_changed");
|
||||
navigation_server->physics_process(0.0); // Give server some cycles to commit.
|
||||
SIGNAL_CHECK("map_changed", build_array(build_array(map)));
|
||||
SIGNAL_CHECK("map_changed", { { map } });
|
||||
SIGNAL_UNWATCH(navigation_server, "map_changed");
|
||||
CHECK_NE(navigation_server->map_get_closest_point(map, Vector2(0, 0)), Vector2(0, 0));
|
||||
}
|
||||
|
||||
@@ -50,16 +50,6 @@ public:
|
||||
Variant function1_latest_arg0;
|
||||
};
|
||||
|
||||
static inline Array build_array() {
|
||||
return Array();
|
||||
}
|
||||
template <typename... Targs>
|
||||
static inline Array build_array(Variant item, Targs... Fargs) {
|
||||
Array a = build_array(Fargs...);
|
||||
a.push_front(item);
|
||||
return a;
|
||||
}
|
||||
|
||||
TEST_SUITE("[Navigation3D]") {
|
||||
TEST_CASE("[NavigationServer3D] Server should be empty when initialized") {
|
||||
NavigationServer3D *navigation_server = NavigationServer3D::get_singleton();
|
||||
@@ -565,7 +555,7 @@ TEST_SUITE("[Navigation3D]") {
|
||||
SIGNAL_WATCH(navigation_server, "map_changed");
|
||||
SIGNAL_CHECK_FALSE("map_changed");
|
||||
navigation_server->physics_process(0.0); // Give server some cycles to commit.
|
||||
SIGNAL_CHECK("map_changed", build_array(build_array(map)));
|
||||
SIGNAL_CHECK("map_changed", { { map } });
|
||||
SIGNAL_UNWATCH(navigation_server, "map_changed");
|
||||
CHECK_NE(navigation_server->map_get_closest_point(map, Vector3(0, 0, 0)), Vector3(0, 0, 0));
|
||||
}
|
||||
@@ -661,7 +651,7 @@ TEST_SUITE("[Navigation3D]") {
|
||||
SIGNAL_WATCH(navigation_server, "map_changed");
|
||||
SIGNAL_CHECK_FALSE("map_changed");
|
||||
navigation_server->physics_process(0.0); // Give server some cycles to commit.
|
||||
SIGNAL_CHECK("map_changed", build_array(build_array(map)));
|
||||
SIGNAL_CHECK("map_changed", { { map } });
|
||||
SIGNAL_UNWATCH(navigation_server, "map_changed");
|
||||
CHECK_NE(navigation_server->map_get_closest_point(map, Vector3(0, 0, 0)), Vector3(0, 0, 0));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user