Merge pull request #90744 from smix8/test_region_rid

Update NavigationRegion tests RID function
This commit is contained in:
Rémi Verschelde 2024-04-16 13:31:05 +02:00
commit 658e97c93a
No known key found for this signature in database
GPG key ID: C3336907360768E1
2 changed files with 2 additions and 2 deletions

View file

@ -41,7 +41,7 @@ namespace TestNavigationRegion2D {
TEST_SUITE("[Navigation]") {
TEST_CASE("[SceneTree][NavigationRegion2D] New region should have valid RID") {
NavigationRegion2D *region_node = memnew(NavigationRegion2D);
CHECK(region_node->get_region_rid().is_valid());
CHECK(region_node->get_rid().is_valid());
memdelete(region_node);
}
}

View file

@ -43,7 +43,7 @@ namespace TestNavigationRegion3D {
TEST_SUITE("[Navigation]") {
TEST_CASE("[SceneTree][NavigationRegion3D] New region should have valid RID") {
NavigationRegion3D *region_node = memnew(NavigationRegion3D);
CHECK(region_node->get_region_rid().is_valid());
CHECK(region_node->get_rid().is_valid());
memdelete(region_node);
}