Improve robustness of CASCADE test
@@ -217,11 +217,12 @@ void SystemCascade_add_after_match() {
test_int(ctx.column_count, 2);
test_null(ctx.param);
- test_int(ctx.e[0], e_1);
- test_int(ctx.e[1], e_2);
- test_int(ctx.e[2], parent);
- test_int(ctx.e[3], e_3);
- test_int(ctx.e[4], e_4);
+ test_assert(ctx.e[0] == e_1 || ctx.e[1] == e_1 || ctx.e[2] == e_1);
+ test_assert(ctx.e[0] == e_2 || ctx.e[1] == e_2 || ctx.e[2] == e_2);
+ test_assert(ctx.e[0] == parent || ctx.e[1] == parent || ctx.e[2] == parent);
+ test_assert(ctx.e[3] == e_3 || ctx.e[4] == e_3);
+ test_assert(ctx.e[3] == e_4 || ctx.e[4] == e_4);
+
test_int(ctx.c[0][0], ecs_entity(Position));
test_int(ctx.s[0][0], 0);
