mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 12:12:28 +00:00
Merge pull request #90744 from smix8/test_region_rid
Update NavigationRegion tests RID function
This commit is contained in:
commit
658e97c93a
@ -41,7 +41,7 @@ namespace TestNavigationRegion2D {
|
|||||||
TEST_SUITE("[Navigation]") {
|
TEST_SUITE("[Navigation]") {
|
||||||
TEST_CASE("[SceneTree][NavigationRegion2D] New region should have valid RID") {
|
TEST_CASE("[SceneTree][NavigationRegion2D] New region should have valid RID") {
|
||||||
NavigationRegion2D *region_node = memnew(NavigationRegion2D);
|
NavigationRegion2D *region_node = memnew(NavigationRegion2D);
|
||||||
CHECK(region_node->get_region_rid().is_valid());
|
CHECK(region_node->get_rid().is_valid());
|
||||||
memdelete(region_node);
|
memdelete(region_node);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -43,7 +43,7 @@ namespace TestNavigationRegion3D {
|
|||||||
TEST_SUITE("[Navigation]") {
|
TEST_SUITE("[Navigation]") {
|
||||||
TEST_CASE("[SceneTree][NavigationRegion3D] New region should have valid RID") {
|
TEST_CASE("[SceneTree][NavigationRegion3D] New region should have valid RID") {
|
||||||
NavigationRegion3D *region_node = memnew(NavigationRegion3D);
|
NavigationRegion3D *region_node = memnew(NavigationRegion3D);
|
||||||
CHECK(region_node->get_region_rid().is_valid());
|
CHECK(region_node->get_rid().is_valid());
|
||||||
memdelete(region_node);
|
memdelete(region_node);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user