fixed tests

This commit is contained in:
Dmitry Stepanov
2026-09-05 10:33:29 +03:00
parent 151055269f
commit d9bfd553d6
3 changed files with 6 additions and 5 deletions
@@ -55,7 +55,7 @@ use std::{
sync::Arc,
};
const INTERNALS_PATH: &'static str = "[email protected]";
const INTERNALS_PATH: &str = "[email protected]";
#[derive(Debug, PartialEq, Clone)]
pub enum DynTypePropertyEditorMessage {
@@ -442,9 +442,7 @@ mod test {
struct Foobar {
foo: u32,
}
let w = DynTypeContainer {
0: Some(DynTypeWrapper(Box::new(Foobar { foo: 123 }))),
};
let w = DynTypeContainer(Some(DynTypeWrapper(Box::new(Foobar { foo: 123 }))));
w.resolve_path(INTERNALS_PATH, &mut |result| {
assert_eq!(
result.unwrap().downcast_ref::<Foobar>().unwrap().foo,
+1 -1
View File
@@ -1109,7 +1109,7 @@ mod test {
&[],
);
foo.resolve_path("enum_field.Content.Stuff@field", &mut |result| {
foo.resolve_path("enum_field.Value.Stuff@field", &mut |result| {
let enum_field = result.expect("the field must exist!");
assert_eq!(
*enum_field
+3
View File
@@ -149,6 +149,7 @@ pub struct Tab {
/// .to_base(),
/// can_be_closed: true,
/// user_data: None,
/// context_menu: None
/// })
/// .with_tab(TabDefinition {
/// uuid: uuid!("265e78db-f95a-445e-b027-2eee796dd996"),
@@ -162,6 +163,7 @@ pub struct Tab {
/// .to_base(),
/// can_be_closed: true,
/// user_data: None,
/// context_menu: None
/// })
/// .build(ctx);
/// }
@@ -201,6 +203,7 @@ pub struct Tab {
/// # content: Default::default(),
/// # can_be_closed: true,
/// # user_data: None,
/// # context_menu: None
/// // ...
/// };
/// # }