diff options
author | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2024-04-13 17:23:25 +0200 |
---|---|---|
committer | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2024-04-13 17:32:33 +0200 |
commit | 80cb914e064809e5440b8747a508547fc11c77de (patch) | |
tree | 604e88887cd3cb5d2e5ebc63fc6cc3345082c108 /tests | |
parent | 43b32f9d0baa13ef8e7079521fbef7c4f090aa88 (diff) | |
download | redot-engine-80cb914e064809e5440b8747a508547fc11c77de.tar.gz |
[Core] Fix incorrect comparison for `Array` const iterator
Diffstat (limited to 'tests')
-rw-r--r-- | tests/core/variant/test_array.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/core/variant/test_array.h b/tests/core/variant/test_array.h index 287345e831..c54854e4d7 100644 --- a/tests/core/variant/test_array.h +++ b/tests/core/variant/test_array.h @@ -555,6 +555,8 @@ TEST_CASE("[Array] Iteration") { idx++; } + CHECK_EQ(idx, a1.size()); + idx = 0; for (const Variant &E : (const Array &)a1) { @@ -562,6 +564,8 @@ TEST_CASE("[Array] Iteration") { idx++; } + CHECK_EQ(idx, a1.size()); + a1.clear(); } |