diff --git a/flecs_ecs/examples/flecs/z_ignore_test_common.rs b/flecs_ecs/examples/flecs/z_ignore_test_common.rs index a8fe793c..8360af77 100644 --- a/flecs_ecs/examples/flecs/z_ignore_test_common.rs +++ b/flecs_ecs/examples/flecs/z_ignore_test_common.rs @@ -50,8 +50,8 @@ impl OutputCapture { #[allow(clippy::double_parens)] settings._private_inner_mut().filters( (vec![ - (r"id: (\d+)\s", "[ID] "), - (r"#(\d+)\s", "#[ID] "), + (r"id:\s?(\d+)", "[ID]"), + (r"#(\d+)\s?", "#[ID] "), ( r#"Group deleted: \\"([^\\"]+)\\""#, "group deleted: redacted", diff --git a/flecs_ecs/examples/flecs/z_ignore_test_snapshots/test@query_pass_query_to_system.snap b/flecs_ecs/examples/flecs/z_ignore_test_snapshots/test@query_pass_query_to_system.snap new file mode 100644 index 00000000..d3080755 --- /dev/null +++ b/flecs_ecs/examples/flecs/z_ignore_test_snapshots/test@query_pass_query_to_system.snap @@ -0,0 +1,5 @@ +--- +source: flecs_ecs/examples/flecs/z_ignore_test_common.rs +expression: str_output +--- +"Position { x: 1, y: 2 }, Velocity { x: 590, y: 20 }\n" diff --git a/flecs_ecs/examples/flecs/z_ignore_test_snapshots/test@query_run_iter.snap b/flecs_ecs/examples/flecs/z_ignore_test_snapshots/test@query_run_iter.snap new file mode 100644 index 00000000..8d074adf --- /dev/null +++ b/flecs_ecs/examples/flecs/z_ignore_test_snapshots/test@query_run_iter.snap @@ -0,0 +1,5 @@ +--- +source: flecs_ecs/examples/flecs/z_ignore_test_common.rs +expression: str_output +--- +"\nTable: Some(examples.queries.query_run.Position, examples.queries.query_run.Velocity, (Identifier,Name))\n - number of entities: 2\n\n - term 0 : \n - component: examples.queries.query_run.Position\n - type size: 8\n - term 1 : \n - component: examples.queries.query_run.Velocity\n - type size: 8\n\n - entity e1: has Position { x: 11.0, y: 22.0 }\n - entity e2: has Position { x: 13.0, y: 24.0 }\n\n\nTable: Some(examples.queries.query_run.Position, examples.queries.query_run.Velocity, examples.queries.query_run.Mass, (Identifier,Name))\n - number of entities: 1\n\n - term 0 : \n - component: examples.queries.query_run.Position\n - type size: 8\n - term 1 : \n - component: examples.queries.query_run.Velocity\n - type size: 8\n\n - entity e3: has Position { x: 14.0, y: 25.0 }\n\n" diff --git a/flecs_ecs/examples/flecs/z_ignore_test_snapshots/test@reflection_basics_json.snap b/flecs_ecs/examples/flecs/z_ignore_test_snapshots/test@reflection_basics_json.snap index d7d1002e..18d077f7 100644 --- a/flecs_ecs/examples/flecs/z_ignore_test_snapshots/test@reflection_basics_json.snap +++ b/flecs_ecs/examples/flecs/z_ignore_test_snapshots/test@reflection_basics_json.snap @@ -2,4 +2,4 @@ source: flecs_ecs/examples/flecs/z_ignore_test_common.rs expression: str_output --- -"Position: {\"x\":2, \"y\":4}\nEntity: {\"name\":\"#561\", \"components\":{\"examples.reflection.reflection_basics_json.Position\":{\"x\":2, \"y\":4}}}\n" +"Position: {\"x\":2, \"y\":4}\nEntity: {\"name\":\"#[ID] \", \"components\":{\"examples.reflection.reflection_basics_json.Position\":{\"x\":2, \"y\":4}}}\n" diff --git a/flecs_ecs/examples/flecs/z_ignore_test_snapshots/test@reflection_world_ser_deser.snap b/flecs_ecs/examples/flecs/z_ignore_test_snapshots/test@reflection_world_ser_deser.snap index 46598be1..86fcc670 100644 --- a/flecs_ecs/examples/flecs/z_ignore_test_snapshots/test@reflection_world_ser_deser.snap +++ b/flecs_ecs/examples/flecs/z_ignore_test_snapshots/test@reflection_world_ser_deser.snap @@ -2,4 +2,4 @@ source: flecs_ecs/examples/flecs/z_ignore_test_common.rs expression: str_output --- -"{\"results\":[{\"name\":\"examples\", \"id\":564}, {\"parent\":\"examples\", \"name\":\"reflection\", \"id\":565}, {\"parent\":\"examples.reflection\", \"name\":\"reflection_world_ser_deser\", \"id\":566}, {\"name\":\"ent_1\", \"id\":567, \"components\":{\"examples.reflection.reflection_world_ser_deser.Move.examples.reflection.reflection_world_ser_deser.Position\":{\"x\":10, \"y\":20}, \"examples.reflection.reflection_world_ser_deser.Move.examples.reflection.reflection_world_ser_deser.Velocity\":{\"x\":1, \"y\":-1}}}, {\"name\":\"ent_2\", \"id\":568, \"components\":{\"examples.reflection.reflection_world_ser_deser.Move.examples.reflection.reflection_world_ser_deser.Position\":{\"x\":30, \"y\":40}, \"examples.reflection.reflection_world_ser_deser.Move.examples.reflection.reflection_world_ser_deser.Velocity\":{\"x\":-1, \"y\":1}}}]}\n::ent_1 moved to {x: 11, y: 19}\n::ent_2 moved to {x: 29, y: 41}\n\n::ent_1 moved to {x: 11, y: 19}\n::ent_2 moved to {x: 29, y: 41}\n" +"{\"results\":[{\"name\":\"ent_1\", \"id\":566, \"components\":{\"examples.reflection.reflection_world_ser_deser.Move.examples.reflection.reflection_world_ser_deser.Position\":{\"x\":10, \"y\":20}, \"examples.reflection.reflection_world_ser_deser.Move.examples.reflection.reflection_world_ser_deser.Velocity\":{\"x\":1, \"y\":-1}}}, {\"name\":\"ent_2\", \"id\":567, \"components\":{\"examples.reflection.reflection_world_ser_deser.Move.examples.reflection.reflection_world_ser_deser.Position\":{\"x\":30, \"y\":40}, \"examples.reflection.reflection_world_ser_deser.Move.examples.reflection.reflection_world_ser_deser.Velocity\":{\"x\":-1, \"y\":1}}}]}\n::ent_1 moved to {x: 11, y: 19}\n::ent_2 moved to {x: 29, y: 41}\n\n::ent_1 moved to {x: 11, y: 19}\n::ent_2 moved to {x: 29, y: 41}\n"