mirror of
https://github.com/FyroxEngine/Fyrox.git
synced 2026-10-11 22:50:08 +00:00
fixed tests
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
/// // ...
|
||||
/// };
|
||||
/// # }
|
||||
|
||||
Reference in New Issue
Block a user