diff options
author | Yuri Sizov <yuris@humnom.net> | 2023-09-14 15:21:37 +0200 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2023-09-14 15:21:37 +0200 |
commit | 721cac4a3848aff3aaae14d2da16acd1fcfaaa7b (patch) | |
tree | 01197e36925e4a93e14a956bb31dc5682f8223e9 | |
parent | 223fc3cdd3c9f4927ecf68ebaa405c7c0993beec (diff) | |
parent | 7726ed6740e7a51bf73bd6e247c462ef3d67b6f3 (diff) | |
download | redot-engine-721cac4a3848aff3aaae14d2da16acd1fcfaaa7b.tar.gz |
Merge pull request #81456 from AThousandShips/test_fix
Fix errors when testing `Resource`
-rw-r--r-- | tests/core/io/test_resource.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/core/io/test_resource.h b/tests/core/io/test_resource.h index 8fc2a2f040..9ddb51220b 100644 --- a/tests/core/io/test_resource.h +++ b/tests/core/io/test_resource.h @@ -139,7 +139,7 @@ TEST_CASE("[Resource] Breaking circular references on save") { loaded_resource_c_binary->get_name() == "C", "The loaded child resource name should be equal to the expected value."); CHECK_MESSAGE( - !loaded_resource_c_binary->get_meta("next"), + !loaded_resource_c_binary->has_meta("next"), "The loaded child resource circular reference should be NULL."); const Ref<Resource> &loaded_resource_a_text = ResourceLoader::load(save_path_text); @@ -155,7 +155,7 @@ TEST_CASE("[Resource] Breaking circular references on save") { loaded_resource_c_text->get_name() == "C", "The loaded child resource name should be equal to the expected value."); CHECK_MESSAGE( - !loaded_resource_c_text->get_meta("next"), + !loaded_resource_c_text->has_meta("next"), "The loaded child resource circular reference should be NULL."); // Break circular reference to avoid memory leak |