Skip to content

Commit

Permalink
update example snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
Indra-db committed Aug 25, 2024
1 parent c83e308 commit ef8d470
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 4 deletions.
4 changes: 2 additions & 2 deletions flecs_ecs/examples/flecs/z_ignore_test_common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
@@ -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"
Original file line number Diff line number Diff line change
@@ -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"
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit ef8d470

Please sign in to comment.