From bc1846e3520f562ad8ddf1ce3fe52438882b1297 Mon Sep 17 00:00:00 2001 From: Emre Sahin Date: Wed, 18 Jan 2023 11:46:42 +0300 Subject: [PATCH] fixing test --- ecs/src/ecs/r11store.rs | 6 +++--- logging/CHANGELOG.md | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ecs/src/ecs/r11store.rs b/ecs/src/ecs/r11store.rs index 1b80089df..1cf7275fe 100644 --- a/ecs/src/ecs/r11store.rs +++ b/ecs/src/ecs/r11store.rs @@ -64,7 +64,7 @@ where /// ``` /// # use xvc_ecs::{R11Store, XvcEntity}; /// # let mut rs = R11Store::::new(); - /// let entity: XvcEntity = 100usize.into(); + /// let entity: XvcEntity = (100u64, 200u64).into(); /// rs.insert(&entity, "left component".into(), "right component".to_string()); /// ``` @@ -77,7 +77,7 @@ where /// ``` /// # use xvc_ecs::{R11Store, XvcEntity}; /// # let mut rs = R11Store::::new(); - /// let entity: XvcEntity = 100.into(); + /// let entity: XvcEntity = (100, 200).into(); /// rs.insert(&entity, "left component".into(), "right component".into()); /// ``` pub fn right_to_left(&self, entity: &XvcEntity) -> Option<(&XvcEntity, &T)> { @@ -88,7 +88,7 @@ where /// ``` /// # use xvc_ecs::{R11Store, XvcEntity}; /// # let mut rs = R11Store::::new(); - /// let entity: XvcEntity = 100.into(); + /// let entity: XvcEntity = (100, 200).into(); /// rs.insert(&entity, "left component".into(), "right component".into()); /// let t = rs.tuple(&entity); /// ``` diff --git a/logging/CHANGELOG.md b/logging/CHANGELOG.md index bc09a0734..ef6ae38f2 100644 --- a/logging/CHANGELOG.md +++ b/logging/CHANGELOG.md @@ -11,6 +11,7 @@ tree and subtasks are marked with indentation. - [x] `From<(u64, u64)>` and `Into<(u64, u64)>` - [x] Tests - [x] Add tests for `From` and `Into` ecs/src/ecs/mod.rs + - [x] Fix doc tests that use `100usize` to create `XvcEntity` - [x] `xvc-test-helper` binary is not produced at builds - [x] Moved it from dev-dependencies to dependencies in workflow_tests/Cargo.toml - [x] Still doesn't work 🛑