Skip to content

Commit

Permalink
Fix tests in SystemMisc to properly finish iterators
Browse files Browse the repository at this point in the history
  • Loading branch information
johnse-hypixel committed Jul 27, 2023
1 parent fc800a7 commit 8671e67
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/addons/src/SystemMisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,7 @@ void SystemMisc_rw_in_implicit_from_empty() {
test_assert(ecs_query_next(&it) == true);
test_assert(ecs_field_is_readonly(&it, 1) == false);
test_assert(ecs_field_is_readonly(&it, 2) == true);
test_assert(ecs_query_next(&it) == false);

ecs_fini(world);
}
Expand All @@ -997,6 +998,7 @@ void SystemMisc_rw_in_implicit_from_entity() {
test_assert(ecs_query_next(&it) == true);
test_assert(ecs_field_is_readonly(&it, 1) == false);
test_assert(ecs_field_is_readonly(&it, 2) == true);
test_assert(ecs_query_next(&it) == false);

ecs_fini(world);
}
Expand Down Expand Up @@ -1057,6 +1059,7 @@ void SystemMisc_rw_out_explicit_from_empty() {
test_assert(ecs_query_next(&it) == true);
test_assert(ecs_field_is_readonly(&it, 1) == false);
test_assert(ecs_field_is_readonly(&it, 2) == false);
test_assert(ecs_query_next(&it) == false);

ecs_fini(world);
}
Expand All @@ -1077,6 +1080,7 @@ void SystemMisc_rw_out_explicit_from_entity() {
test_assert(ecs_query_next(&it) == true);
test_assert(ecs_field_is_readonly(&it, 1) == false);
test_assert(ecs_field_is_readonly(&it, 2) == false);
test_assert(ecs_query_next(&it) == false);

ecs_fini(world);
}
Expand Down

0 comments on commit 8671e67

Please sign in to comment.