summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2021-07-22 22:37:17 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2021-07-22 22:52:30 +0200
commit1147fa5c1976663f4f4e08911599d348f5587b76 (patch)
tree6e50b7b8315ebdbb3f48f1e806abc359f150cbab /tests
parentc2c82de49de93d58f8be1255ca787e2aa8c7f129 (diff)
Make Object "meta" functions take StringName.
The various get_meta, set_meta, has_meta, get_meta_list, remove_meta functions now uses StringName, allowing further optimizations via the SNAME macro when used from C++ (this PR does not change the various usage though).
Diffstat (limited to 'tests')
-rw-r--r--tests/test_object.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_object.h b/tests/test_object.h
index 36f9ef2a51..a18adf31b6 100644
--- a/tests/test_object.h
+++ b/tests/test_object.h
@@ -139,7 +139,7 @@ TEST_CASE("[Object] Metadata") {
Color(object.get_meta(meta_path)).is_equal_approx(Color(0, 1, 0)),
"The returned object metadata after setting should match the expected value.");
- List<String> meta_list;
+ List<StringName> meta_list;
object.get_meta_list(&meta_list);
CHECK_MESSAGE(
meta_list.size() == 1,
@@ -154,7 +154,7 @@ TEST_CASE("[Object] Metadata") {
"The returned object metadata after removing should match the expected value.");
ERR_PRINT_ON;
- List<String> meta_list2;
+ List<StringName> meta_list2;
object.get_meta_list(&meta_list2);
CHECK_MESSAGE(
meta_list2.size() == 0,