summaryrefslogtreecommitdiff
path: root/tests/core/variant
diff options
context:
space:
mode:
authorcdemirer <41021322+cdemirer@users.noreply.github.com>2021-12-30 13:14:09 +0800
committercdemirer <41021322+cdemirer@users.noreply.github.com>2021-12-30 13:14:09 +0800
commite2ed9d13ebdf4fe2a7a7a4eacd47262310ffa3e3 (patch)
tree7beb41ab742f5e6e59444217592fad88979833e7 /tests/core/variant
parent9f058674acebf9a7a0704cdbc26dc9f6d853b16e (diff)
Fix Array and Dictionary id() and dictionary test bug
Diffstat (limited to 'tests/core/variant')
-rw-r--r--tests/core/variant/test_dictionary.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/core/variant/test_dictionary.h b/tests/core/variant/test_dictionary.h
index 65079698a3..cf0709d17a 100644
--- a/tests/core/variant/test_dictionary.h
+++ b/tests/core/variant/test_dictionary.h
@@ -196,7 +196,7 @@ TEST_CASE("[Dictionary] Duplicate dictionary") {
Dictionary shallow_d = d.duplicate(false);
CHECK_MESSAGE(shallow_d.id() != d.id(), "Should create a new array");
CHECK_MESSAGE(Dictionary(shallow_d[1]).id() == Dictionary(d[1]).id(), "Should keep nested dictionary");
- CHECK_MESSAGE(Array(shallow_d[2]).id() == Array(d[2]).id(), "Should keep nested array");
+ CHECK_MESSAGE(Array(shallow_d[k2]).id() == Array(d[k2]).id(), "Should keep nested array");
CHECK_EQ(shallow_d, d);
shallow_d[0] = 0;
CHECK_NE(shallow_d, d);